##// END OF EJS Templates
Fixing calendar and gantt links broken by r2317....
Jean-Philippe Lang -
r2326:c4af6efd2556
parent child
Show More
@@ -16,24 +16,24
16 16
17 17 <p style="float:right; margin:0px;">
18 18 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
19 {:update => "content", :url => { :project_id => @project, :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
20 {:href => url_for(:action => 'calendar', :project_id => @project, :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
19 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
20 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
21 21 %> |
22 22 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
23 {:update => "content", :url => { :project_id => @project, :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
24 {:href => url_for(:action => 'calendar', :project_id => @project, :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
23 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
24 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
25 25 %>
26 26 </p>
27 27
28 28 <p class="buttons">
29 29 <%= link_to_remote l(:button_apply),
30 { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) },
30 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
31 31 :update => "content",
32 32 :with => "Form.serialize('query_form')"
33 33 }, :class => 'icon icon-checked' %>
34 34
35 35 <%= link_to_remote l(:button_clear),
36 { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) },
36 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
37 37 :update => "content",
38 38 }, :class => 'icon icon-reload' if @query.new_record? %>
39 39 </p>
@@ -113,6 +113,8 ActionController::Routing::Routes.draw do |map|
113 113 issues_views.connect 'issues.:format', :action => 'index'
114 114 issues_views.connect 'projects/:project_id/issues.:format', :action => 'index'
115 115 issues_views.connect 'projects/:project_id/issues/new', :action => 'new'
116 issues_views.connect 'projects/:project_id/issues/gantt', :action => 'gantt'
117 issues_views.connect 'projects/:project_id/issues/calendar', :action => 'calendar'
116 118 issues_views.connect 'projects/:project_id/issues/:copy_from/copy', :action => 'new'
117 119 issues_views.connect 'issues/:id', :action => 'show', :id => /\d+/
118 120 issues_views.connect 'issues/:id.:format', :action => 'show', :id => /\d+/
General Comments 0
You need to be logged in to leave comments. Login now