From aed36229f8b6dd2519808d5445f81407c438b5c4 Mon Sep 17 00:00:00 2001 From: baiyu Date: Sat, 28 Sep 2013 16:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86issues=E9=87=8C?= =?UTF-8?q?=E2=80=9C=E9=A1=B6=E2=80=9D=E5=92=8C=E2=80=9C=E8=B8=A9=E2=80=9D?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/_list.html.erb | 17 +++- app/views/issues/index.html.erb | 21 ++-- app/views/projects/_course_form.html.erb | 116 +++++++++++------------ config/locales/zh.yml | 9 +- 4 files changed, 91 insertions(+), 72 deletions(-) diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index 839940928..4433d29d9 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -69,7 +69,7 @@ <% previous_group = group %> <% end %> - +
  • "> <% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %> @@ -114,8 +114,11 @@
  • + - + + + <% @query.block_columns.each do |column| if (text = column_content(column, issue)) && text.present? -%> @@ -127,4 +130,14 @@ +
    <% end -%> + +
    +
    + <% other_formats_links do |f| %> +<%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> +<%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %> +<%= f.link_to 'PDF', :url => params %> +<% end %> +
    diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 59d43ef56..47cecb863 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -52,16 +52,20 @@ -

    +

    <%= link_to_function l(:label_issue_query), 'submit_query_form("query_form")', :class => 'icon icon-checked' %> <%= link_to l(:label_issue_cancel_query), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload' %> -

    +
    <% end %> + + <%= error_messages_for 'query' %> <% if @query.valid? %> <% if @issues.empty? %> + + + +

    <%= l(:label_no_data) %>

    @@ -72,14 +76,15 @@
      <%= pagination_links_full @issue_pages, @issue_count %>
        - + <% end %> +
    + +
    + -<% other_formats_links do |f| %> -<%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> -<%= f.link_to 'CSV', :url => params, :onclick => "showModal('csv-export-options', '330px'); return false;" %> -<%= f.link_to 'PDF', :url => params %> -<% end %>