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