Adds some css classes (#14767).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12171 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-09-29 15:39:56 +00:00
parent 481a1311b7
commit a1addba26c
2 changed files with 3 additions and 3 deletions

View File

@ -1062,7 +1062,7 @@ module ApplicationHelper
(pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) + (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) +
(pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) + (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) +
(pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe) (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe)
), :class => 'progress', :style => "width: #{width};").html_safe + ), :class => 'progress progress-#{pcts[0]}', :style => "width: #{width};").html_safe +
content_tag('p', legend, :class => 'percent').html_safe content_tag('p', legend, :class => 'percent').html_safe
end end

View File

@ -39,9 +39,9 @@
<table class="list related-issues"> <table class="list related-issues">
<caption><%= l(:label_related_issues) %></caption> <caption><%= l(:label_related_issues) %></caption>
<%- @issues.each do |issue| -%> <%- @issues.each do |issue| -%>
<tr class="hascontextmenu"> <tr class="issue hascontextmenu">
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
<td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
</tr> </tr>
<% end %> <% end %>
</table> </table>