From a1addba26cfbc5b056cf7e865a9602dabf831aa8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 29 Sep 2013 15:39:56 +0000 Subject: [PATCH] Adds some css classes (#14767). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12171 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- app/views/versions/show.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %> -- 2.39.5