@@ -1108,14 +1108,13 module ApplicationHelper | |||
|
1108 | 1108 | pcts = pcts.collect(&:round) |
|
1109 | 1109 | pcts[1] = pcts[1] - pcts[0] |
|
1110 | 1110 | pcts << (100 - pcts[1] - pcts[0]) |
|
1111 | width = options[:width] || '100px;' | |
|
1112 | 1111 | legend = options[:legend] || '' |
|
1113 | 1112 | content_tag('table', |
|
1114 | 1113 | content_tag('tr', |
|
1115 | 1114 | (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) + |
|
1116 | 1115 | (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) + |
|
1117 | 1116 | (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe) |
|
1118 |
), :class => "progress progress-#{pcts[0]}" |
|
|
1117 | ), :class => "progress progress-#{pcts[0]}").html_safe + | |
|
1119 | 1118 | content_tag('p', legend, :class => 'percent').html_safe |
|
1120 | 1119 | end |
|
1121 | 1120 |
@@ -114,7 +114,7 module IssuesHelper | |||
|
114 | 114 | content_tag('td', link_to_issue(child, :project => (issue.project_id != child.project_id)), :class => 'subject', :style => 'width: 50%') + |
|
115 | 115 | content_tag('td', h(child.status)) + |
|
116 | 116 | content_tag('td', link_to_user(child.assigned_to)) + |
|
117 |
content_tag('td', progress_bar(child.done_ratio |
|
|
117 | content_tag('td', progress_bar(child.done_ratio)), | |
|
118 | 118 | :class => css) |
|
119 | 119 | end |
|
120 | 120 | s << '</table></form>' |
@@ -145,7 +145,7 module QueriesHelper | |||
|
145 | 145 | when :description |
|
146 | 146 | issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : '' |
|
147 | 147 | when :done_ratio |
|
148 |
progress_bar(value |
|
|
148 | progress_bar(value) | |
|
149 | 149 | when :relations |
|
150 | 150 | content_tag('span', |
|
151 | 151 | value.to_s(issue) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe, |
@@ -55,7 +55,7 | |||
|
55 | 55 | rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date' |
|
56 | 56 | end |
|
57 | 57 | unless @issue.disabled_core_fields.include?('done_ratio') |
|
58 |
rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, : |
|
|
58 | rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress' | |
|
59 | 59 | end |
|
60 | 60 | unless @issue.disabled_core_fields.include?('estimated_hours') |
|
61 | 61 | if @issue.estimated_hours.present? || @issue.total_estimated_hours.to_f > 0 |
@@ -22,8 +22,7 | |||
|
22 | 22 | </td> |
|
23 | 23 | <td style="width:240px;"> |
|
24 | 24 | <%= progress_bar((count[:closed].to_f / count[:total])*100, |
|
25 |
:legend => "#{count[:closed]}/#{count[:total]}" |
|
|
26 | :width => "#{(count[:total].to_f / max * 200).floor}px;") %> | |
|
25 | :legend => "#{count[:closed]}/#{count[:total]}") %> | |
|
27 | 26 | </td> |
|
28 | 27 | </tr> |
|
29 | 28 | <% end %> |
@@ -1,3 +1,4 | |||
|
1 | <div class="version-overview"> | |
|
1 | 2 | <% if version.completed? %> |
|
2 | 3 | <p><%= format_date(version.effective_date) %></p> |
|
3 | 4 | <% elsif version.effective_date %> |
@@ -15,7 +16,7 | |||
|
15 | 16 | |
|
16 | 17 | <% if version.issues_count > 0 %> |
|
17 | 18 | <%= progress_bar([version.closed_percent, version.completed_percent], |
|
18 |
: |
|
|
19 | :legend => ('%0.0f%' % version.completed_percent)) %> | |
|
19 | 20 | <p class="progress-info"> |
|
20 | 21 | <%= link_to(l(:label_x_issues, :count => version.issues_count), |
|
21 | 22 | version_filtered_issues_path(version, :status_id => '*')) %> |
@@ -31,3 +32,4 | |||
|
31 | 32 | <% else %> |
|
32 | 33 | <p class="progress-info"><%= l(:label_roadmap_no_issues) %></p> |
|
33 | 34 | <% end %> |
|
35 | </div> |
@@ -789,6 +789,7 table.progress { | |||
|
789 | 789 | margin: 1px 6px 1px 0px; |
|
790 | 790 | } |
|
791 | 791 | |
|
792 | table.progress {width:80px;} | |
|
792 | 793 | table.progress td { height: 1em; } |
|
793 | 794 | table.progress td.closed { background: #BAE0BA none repeat scroll 0%; } |
|
794 | 795 | table.progress td.done { background: #D3EDD3 none repeat scroll 0%; } |
@@ -796,7 +797,9 table.progress td.todo { background: #eee none repeat scroll 0%; } | |||
|
796 | 797 | p.percent {font-size: 80%; margin:0;} |
|
797 | 798 | p.progress-info {clear: left; font-size: 80%; margin-top:-4px; color:#777;} |
|
798 | 799 | |
|
799 | #roadmap table.progress td { height: 1.2em; } | |
|
800 | .version-overview table.progress {width:40em;} | |
|
801 | .version-overview table.progress td { height: 1.2em; } | |
|
802 | ||
|
800 | 803 | /***** Tabs *****/ |
|
801 | 804 | #content .tabs {height: 2.6em; margin-bottom:1.2em; position:relative; overflow:hidden;} |
|
802 | 805 | #content .tabs ul {margin:0; position:absolute; bottom:0; padding-left:0.5em; width: 2000px; border-bottom: 1px solid #bbbbbb;} |
@@ -740,7 +740,9 | |||
|
740 | 740 | |
|
741 | 741 | div#activity dl, #search-results { margin-left: 0; } |
|
742 | 742 | |
|
743 | .version-overview table.progress {width:75%;} | |
|
743 | 744 | div#version-summary {float:none; width:100%; margin-left:0;} |
|
745 | body.controller-versions.action-show div#roadmap .related-issues {width:100%;} | |
|
744 | 746 | |
|
745 | 747 | /*----------------------------------------*\ |
|
746 | 748 | G) FORMS |
General Comments 0
You need to be logged in to leave comments.
Login now