diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-04 12:44:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-04 12:44:44 +0000 |
commit | da8f8c711533226a351cbc0fbc8e43896c3aa698 (patch) | |
tree | e1f4fbc686328322df5c0275c7c5c918ee5628e9 | |
parent | 1e851997834e491c1770ef9d779ee1b7e7cba26f (diff) | |
download | redmine-da8f8c711533226a351cbc0fbc8e43896c3aa698.tar.gz redmine-da8f8c711533226a351cbc0fbc8e43896c3aa698.zip |
Use a table instead of an unordered list in "Issue tracking" box (#20413).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14640 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/projects/show.html.erb | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index dce288e4c..1e00238bb 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -39,14 +39,34 @@ <% if User.current.allowed_to?(:view_issues, @project) %> <div class="issues box"> <h3><%=l(:label_issue_tracking)%></h3> - <ul> - <% for tracker in @trackers %> - <li><%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>: - <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, - :total => @total_issues_by_tracker[tracker].to_i) %> - </li> - <% end %> - </ul> + <table class="list issue-report"> + <thead> + <tr> + <th></th> + <th><%=l(:label_open_issues_plural)%></th> + <th><%=l(:label_closed_issues_plural)%></th> + <th><%=l(:label_total)%></th> + </tr> + </thead> + <tbody> + <% @trackers.each do |tracker| %> + <tr class="<%= cycle("odd", "even") %>"> + <td class="name"> + <%= tracker.name %> + </td> + <td> + <%= link_to @open_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %> + </td> + <td> + <%= link_to (@total_issues_by_tracker[tracker].to_i - @open_issues_by_tracker[tracker].to_i), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => 'c') %> + </td> + <td> + <%= link_to @total_issues_by_tracker[tracker].to_i, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id, :status_id => '*') %> + </td> + </tr> + <% end %> + </tbody> + </table> <p> <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %> <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> |