summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-15 21:18:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-15 21:18:06 +0000
commitb48291ec63b58224df7b250ba62445dcbf5c835e (patch)
treead8ad421ae1b5a103fc23765f982ff8e32e06888 /app/views
parent6a586c39e9f018d8bf787d5b78a54fa61e478cc6 (diff)
downloadredmine-b48291ec63b58224df7b250ba62445dcbf5c835e.tar.gz
redmine-b48291ec63b58224df7b250ba62445dcbf5c835e.zip
Adds an application setting to limit the number of items that can be displayed on the gantt chart (#6276).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4513 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/gantts/show.html.erb5
-rw-r--r--app/views/settings/_issues.rhtml2
2 files changed, 7 insertions, 0 deletions
diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb
index 4f3026065..d0f4f9f29 100644
--- a/app/views/gantts/show.html.erb
+++ b/app/views/gantts/show.html.erb
@@ -67,6 +67,11 @@ t_height = g_height + headers_height
%>
+
+<% if @gantt.truncated %>
+ <p class="warning"><%= l(:notice_gantt_chart_truncated, :max => @gantt.max_rows) %></p>
+<% end %>
+
<table width="100%" style="border:0; border-collapse: collapse;">
<tr>
<td style="width:<%= subject_width %>px; padding:0px;">
diff --git a/app/views/settings/_issues.rhtml b/app/views/settings/_issues.rhtml
index 4280e44b5..273d4b581 100644
--- a/app/views/settings/_issues.rhtml
+++ b/app/views/settings/_issues.rhtml
@@ -8,6 +8,8 @@
<p><%= setting_select :issue_done_ratio, Issue::DONE_RATIO_OPTIONS.collect {|i| [l("setting_issue_done_ratio_#{i}"), i]} %></p>
<p><%= setting_text_field :issues_export_limit, :size => 6 %></p>
+
+<p><%= setting_text_field :gantt_items_limit, :size => 6 %></p>
</div>
<fieldset class="box settings"><legend><%= l(:setting_issue_list_default_columns) %></legend>