##// END OF EJS Templates
Fixed calendar navigation links broken by r2317....
Jean-Philippe Lang -
r2325:d1d1c9bfd008
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 => { :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))}
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))}
21 21 %> |
22 22 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
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))}
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))}
25 25 %>
26 26 </p>
27 27
28 28 <p class="buttons">
29 29 <%= link_to_remote l(:button_apply),
30 { :url => { :set_filter => (@query.new_record? ? 1 : nil) },
30 { :url => { :project_id => @project, :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 => { :set_filter => (@query.new_record? ? 1 : nil) },
36 { :url => { :project_id => @project, :set_filter => (@query.new_record? ? 1 : nil) },
37 37 :update => "content",
38 38 }, :class => 'icon icon-reload' if @query.new_record? %>
39 39 </p>
General Comments 0
You need to be logged in to leave comments. Login now