##// END OF EJS Templates
gantt link added in left menu and removed from calendar view...
Jean-Philippe Lang -
r71:ab88b2762221
parent child
Show More
@@ -38,6 +38,7 var menu_contenu=' \
38 <% unless @project.nil? || @project.id.nil? %> \
38 <% unless @project.nil? || @project.id.nil? %> \
39 <div id="menuProject" class="menu" onmouseover="menuMouseover(event)"> \
39 <div id="menuProject" class="menu" onmouseover="menuMouseover(event)"> \
40 <%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %> \
40 <%= link_to l(:label_calendar), {:controller => 'projects', :action => 'calendar', :id => @project }, :class => "menuItem" %> \
41 <%= link_to l(:label_gantt), {:controller => 'projects', :action => 'gantt', :id => @project }, :class => "menuItem" %> \
41 <%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %> \
42 <%= link_to l(:label_issue_plural), {:controller => 'projects', :action => 'list_issues', :id => @project }, :class => "menuItem" %> \
42 <%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %> \
43 <%= link_to l(:label_report_plural), {:controller => 'reports', :action => 'issue_report', :id => @project }, :class => "menuItem" %> \
43 <%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %> \
44 <%= link_to l(:label_activity), {:controller => 'projects', :action => 'activity', :id => @project }, :class => "menuItem" %> \
@@ -103,6 +104,7 var menu_contenu=' \
103 <ul class="menublock">
104 <ul class="menublock">
104 <li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
105 <li><%= link_to l(:label_overview), :controller => 'projects', :action => 'show', :id => @project %></li>
105 <li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
106 <li><%= link_to l(:label_calendar), :controller => 'projects', :action => 'calendar', :id => @project %></li>
107 <li><%= link_to l(:label_gantt), :controller => 'projects', :action => 'gantt', :id => @project %></li>
106 <li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
108 <li><%= link_to l(:label_issue_plural), :controller => 'projects', :action => 'list_issues', :id => @project %></li>
107 <li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
109 <li><%= link_to l(:label_report_plural), :controller => 'reports', :action => 'issue_report', :id => @project %></li>
108 <li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
110 <li><%= link_to l(:label_activity), :controller => 'projects', :action => 'activity', :id => @project %></li>
@@ -2,16 +2,24
2
2
3 <table width="100%">
3 <table width="100%">
4 <tr>
4 <tr>
5 <td align="left">
5 <td align="left" width="150">
6 <%= start_form_tag :action => 'calendar', :id => @project %>
6 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
7 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
7 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
8 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
8 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
9 <%= submit_tag l(:button_submit), :class => "button-small" %>
9 %>
10 <%= end_form_tag %>
11 </td>
10 </td>
12 <td align="right">
11 <td align="center">
13 <%= image_tag 'gantt' %>
12 <%= start_form_tag :action => 'calendar', :id => @project %>
14 <%= link_to l(:label_gantt_chart), :action => 'gantt', :id => @project %>&nbsp;
13 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
14 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
15 <%= submit_tag l(:button_submit), :class => "button-small" %>
16 <%= end_form_tag %>
17 </td>
18 <td align="right" width="150">
19 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
20 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
21 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
22 %>&nbsp;
15 </td>
23 </td>
16 </tr>
24 </tr>
17 </table>
25 </table>
@@ -52,23 +60,6 end %>
52 </tr>
60 </tr>
53 </table>
61 </table>
54
62
55 <table width="100%">
56 <tr>
57 <td align="left">
58 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
59 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
60 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
61 %>
62 </td>
63 <td align="right">
64 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
65 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
66 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
67 %>
68 &nbsp;
69 </td>
70 </tr>
71 </table>
72 <br />
63 <br />
73 <%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
64 <%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
74 <%= image_tag 'arrow_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
65 <%= image_tag 'arrow_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
@@ -1,4 +1,4
1 <h2><%= l(:label_gantt_chart) %></h2>
1 <h2><%= l(:label_gantt) %></h2>
2 <div class="topright">
2 <div class="topright">
3 <small>
3 <small>
4 <%= l(:label_export_to) %>&nbsp;&nbsp;<%= link_to 'PDF', :zoom => @zoom, :year => @year_from, :month => @month_from, :months => @months, :output => 'pdf' %>
4 <%= l(:label_export_to) %>&nbsp;&nbsp;<%= link_to 'PDF', :zoom => @zoom, :year => @year_from, :month => @month_from, :months => @months, :output => 'pdf' %>
@@ -254,7 +254,7 label_add_note: Eine Anmerkung addieren
254 label_per_page: Pro Seite
254 label_per_page: Pro Seite
255 label_calendar: Kalender
255 label_calendar: Kalender
256 label_months_from: Monate von
256 label_months_from: Monate von
257 label_gantt_chart: Gantt Diagramm
257 label_gantt: Gantt
258 label_internal: Intern
258 label_internal: Intern
259 label_last_changes: %d änderungen des Letzten
259 label_last_changes: %d änderungen des Letzten
260 label_change_view_all: Alle änderungen ansehen
260 label_change_view_all: Alle änderungen ansehen
@@ -254,7 +254,7 label_add_note: Add a note
254 label_per_page: Per page
254 label_per_page: Per page
255 label_calendar: Calendar
255 label_calendar: Calendar
256 label_months_from: months from
256 label_months_from: months from
257 label_gantt_chart: Gantt chart
257 label_gantt: Gantt
258 label_internal: Internal
258 label_internal: Internal
259 label_last_changes: last %d changes
259 label_last_changes: last %d changes
260 label_change_view_all: View all changes
260 label_change_view_all: View all changes
@@ -254,7 +254,7 label_add_note: Agregar una nota
254 label_per_page: Por la página
254 label_per_page: Por la página
255 label_calendar: Calendario
255 label_calendar: Calendario
256 label_months_from: meses de
256 label_months_from: meses de
257 label_gantt_chart: Diagrama de Gantt
257 label_gantt: Gantt
258 label_internal: Interno
258 label_internal: Interno
259 label_last_changes: %d cambios del último
259 label_last_changes: %d cambios del último
260 label_change_view_all: Ver todos los cambios
260 label_change_view_all: Ver todos los cambios
@@ -255,7 +255,7 label_add_note: Ajouter une note
255 label_per_page: Par page
255 label_per_page: Par page
256 label_calendar: Calendrier
256 label_calendar: Calendrier
257 label_months_from: mois depuis
257 label_months_from: mois depuis
258 label_gantt_chart: Diagramme de Gantt
258 label_gantt: Gantt
259 label_internal: Interne
259 label_internal: Interne
260 label_last_changes: %d derniers changements
260 label_last_changes: %d derniers changements
261 label_change_view_all: Voir tous les changements
261 label_change_view_all: Voir tous les changements
General Comments 0
You need to be logged in to leave comments. Login now