summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-08 12:28:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-08 12:28:23 +0000
commitecb1f660ac4d8bb46e2d1b34f89a4638297cd1e4 (patch)
treecf562ed0f402d662985fc1c3cf0b50b4e514f06f /app/views
parente51adfdb3f2988d3a92d34f088f155871f82a870 (diff)
downloadredmine-ecb1f660ac4d8bb46e2d1b34f89a4638297cd1e4.tar.gz
redmine-ecb1f660ac4d8bb46e2d1b34f89a4638297cd1e4.zip
Improved responsiveness for versions and roadmap (#19097).
Width of progress bars is no longer hard-coded in views. git-svn-id: http://svn.redmine.org/redmine/trunk@14851 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/show.html.erb2
-rw-r--r--app/views/versions/_issue_counts.html.erb3
-rw-r--r--app/views/versions/_overview.html.erb4
3 files changed, 5 insertions, 4 deletions
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index b6b9ad4c1..70a7fe165 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -55,7 +55,7 @@
rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
end
unless @issue.disabled_core_fields.include?('done_ratio')
- rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
+ rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress'
end
unless @issue.disabled_core_fields.include?('estimated_hours')
if @issue.estimated_hours.present? || @issue.total_estimated_hours.to_f > 0
diff --git a/app/views/versions/_issue_counts.html.erb b/app/views/versions/_issue_counts.html.erb
index 7d9652250..398b2d31f 100644
--- a/app/views/versions/_issue_counts.html.erb
+++ b/app/views/versions/_issue_counts.html.erb
@@ -22,8 +22,7 @@
</td>
<td style="width:240px;">
<%= progress_bar((count[:closed].to_f / count[:total])*100,
- :legend => "#{count[:closed]}/#{count[:total]}",
- :width => "#{(count[:total].to_f / max * 200).floor}px;") %>
+ :legend => "#{count[:closed]}/#{count[:total]}") %>
</td>
</tr>
<% end %>
diff --git a/app/views/versions/_overview.html.erb b/app/views/versions/_overview.html.erb
index c3d359bb9..bb8c50c35 100644
--- a/app/views/versions/_overview.html.erb
+++ b/app/views/versions/_overview.html.erb
@@ -1,3 +1,4 @@
+<div class="version-overview">
<% if version.completed? %>
<p><%= format_date(version.effective_date) %></p>
<% elsif version.effective_date %>
@@ -15,7 +16,7 @@
<% if version.issues_count > 0 %>
<%= progress_bar([version.closed_percent, version.completed_percent],
- :width => '40em', :legend => ('%0.0f%' % version.completed_percent)) %>
+ :legend => ('%0.0f%' % version.completed_percent)) %>
<p class="progress-info">
<%= link_to(l(:label_x_issues, :count => version.issues_count),
version_filtered_issues_path(version, :status_id => '*')) %>
@@ -31,3 +32,4 @@
<% else %>
<p class="progress-info"><%= l(:label_roadmap_no_issues) %></p>
<% end %>
+</div>