diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-06 21:13:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-06 21:13:46 +0000 |
commit | ab88b2762221cfbfdf509c156a75387ed733d426 (patch) | |
tree | 6258dc71496988d946c2496e4497a180c3cfec6e /app/views | |
parent | 2c335dbf32f738a06418d6eb5ff64b30d3379e48 (diff) | |
download | redmine-ab88b2762221cfbfdf509c156a75387ed733d426.tar.gz redmine-ab88b2762221cfbfdf509c156a75387ed733d426.zip |
gantt link added in left menu and removed from calendar view
git-svn-id: http://redmine.rubyforge.org/svn/trunk@73 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/base.rhtml | 2 | ||||
-rw-r--r-- | app/views/projects/calendar.rhtml | 43 | ||||
-rw-r--r-- | app/views/projects/gantt.rhtml | 2 |
3 files changed, 20 insertions, 27 deletions
diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 951fa88f7..4d036ef8a 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -38,6 +38,7 @@ var menu_contenu=' \ <% unless @project.nil? || @project.id.nil? %> \
<div id="menuProject" class="menu" onmouseover="menuMouseover(event)"> \
<%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %> \
+<%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %> \
<%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %> \
<%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %> \
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %> \
@@ -103,6 +104,7 @@ var menu_contenu=' \ <ul class="menublock">
<li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
<li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
+ <li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
<li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
<li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
<li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml index 22fcfa021..2781f98c9 100644 --- a/app/views/projects/calendar.rhtml +++ b/app/views/projects/calendar.rhtml @@ -2,16 +2,24 @@ <table width="100%">
<tr>
-<td align="left">
-<%= start_form_tag :action => 'calendar', :id => @project %>
-<%= select_month(@month, :prefix => "month", :discard_type => true) %>
-<%= select_year(@year, :prefix => "year", :discard_type => true) %>
-<%= submit_tag l(:button_submit), :class => "button-small" %>
-<%= end_form_tag %>
+<td align="left" width="150">
+ <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
+ {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
+ {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
+ %>
</td>
-<td align="right">
-<%= image_tag 'gantt' %>
-<%= link_to l(:label_gantt_chart), :action => 'gantt', :id => @project %>
+<td align="center">
+ <%= start_form_tag :action => 'calendar', :id => @project %>
+ <%= select_month(@month, :prefix => "month", :discard_type => true) %>
+ <%= select_year(@year, :prefix => "year", :discard_type => true) %>
+ <%= submit_tag l(:button_submit), :class => "button-small" %>
+ <%= end_form_tag %>
+</td>
+<td align="right" width="150">
+ <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
+ {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
+ {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
+ %>
</td>
</tr>
</table>
@@ -52,23 +60,6 @@ end %> </tr>
</table>
-<table width="100%">
-<tr>
-<td align="left">
-<%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
- {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
- {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
- %>
-</td>
-<td align="right">
-<%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
- {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
- {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
- %>
-
-</td>
-</tr>
-</table>
<br />
<%= image_tag 'arrow_from' %> <%= l(:text_tip_task_begin_day) %><br />
<%= image_tag 'arrow_to' %> <%= l(:text_tip_task_end_day) %><br />
diff --git a/app/views/projects/gantt.rhtml b/app/views/projects/gantt.rhtml index 78d3ac20a..b03675795 100644 --- a/app/views/projects/gantt.rhtml +++ b/app/views/projects/gantt.rhtml @@ -1,4 +1,4 @@ -<h2><%= l(:label_gantt_chart) %></h2>
+<h2><%= l(:label_gantt) %></h2>
<div class="topright">
<small>
<%= l(:label_export_to) %> <%= link_to 'PDF', :zoom => @zoom, :year => @year_from, :month => @month_from, :months => @months, :output => 'pdf' %>
|