From: Jean-Philippe Lang Date: Sun, 29 Sep 2013 15:39:56 +0000 (+0000) Subject: Adds some css classes (#14767). X-Git-Tag: 2.4.0~89 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1addba26cfbc5b056cf7e865a9602dabf831aa8;p=redmine.git Adds some css classes (#14767). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12171 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4b33e15f3..2c093a26f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1062,7 +1062,7 @@ module ApplicationHelper (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[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 end diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb index 2e104bd39..fdbec6ff6 100644 --- a/app/views/versions/show.html.erb +++ b/app/views/versions/show.html.erb @@ -39,9 +39,9 @@ <%- @issues.each do |issue| -%> - + - + <% end %>