@@ -16,24 +16,24 | |||||
16 |
|
16 | |||
17 | <p style="float:right; margin:0px;"> |
|
17 | <p style="float:right; margin:0px;"> | |
18 | <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")), |
|
18 | <%= link_to_remote ('« ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")), | |
19 |
{:update => "content", :url => { |
|
19 | {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }}, | |
20 |
{:href => url_for(:action => 'calendar' |
|
20 | {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))} | |
21 | %> | |
|
21 | %> | | |
22 | <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'), |
|
22 | <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'), | |
23 |
{:update => "content", :url => { |
|
23 | {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }}, | |
24 |
{:href => url_for(:action => 'calendar' |
|
24 | {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))} | |
25 | %> |
|
25 | %> | |
26 | </p> |
|
26 | </p> | |
27 |
|
27 | |||
28 | <p class="buttons"> |
|
28 | <p class="buttons"> | |
29 | <%= link_to_remote l(:button_apply), |
|
29 | <%= link_to_remote l(:button_apply), | |
30 |
{ :url => { |
|
30 | { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, | |
31 | :update => "content", |
|
31 | :update => "content", | |
32 | :with => "Form.serialize('query_form')" |
|
32 | :with => "Form.serialize('query_form')" | |
33 | }, :class => 'icon icon-checked' %> |
|
33 | }, :class => 'icon icon-checked' %> | |
34 |
|
34 | |||
35 | <%= link_to_remote l(:button_clear), |
|
35 | <%= link_to_remote l(:button_clear), | |
36 |
{ :url => { |
|
36 | { :url => { :set_filter => (@query.new_record? ? 1 : nil) }, | |
37 | :update => "content", |
|
37 | :update => "content", | |
38 | }, :class => 'icon icon-reload' if @query.new_record? %> |
|
38 | }, :class => 'icon icon-reload' if @query.new_record? %> | |
39 | </p> |
|
39 | </p> |
@@ -113,6 +113,8 ActionController::Routing::Routes.draw do |map| | |||||
113 | issues_views.connect 'issues.:format', :action => 'index' |
|
113 | issues_views.connect 'issues.:format', :action => 'index' | |
114 | issues_views.connect 'projects/:project_id/issues.:format', :action => 'index' |
|
114 | issues_views.connect 'projects/:project_id/issues.:format', :action => 'index' | |
115 | issues_views.connect 'projects/:project_id/issues/new', :action => 'new' |
|
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 | issues_views.connect 'projects/:project_id/issues/:copy_from/copy', :action => 'new' |
|
118 | issues_views.connect 'projects/:project_id/issues/:copy_from/copy', :action => 'new' | |
117 | issues_views.connect 'issues/:id', :action => 'show', :id => /\d+/ |
|
119 | issues_views.connect 'issues/:id', :action => 'show', :id => /\d+/ | |
118 | issues_views.connect 'issues/:id.:format', :action => 'show', :id => /\d+/ |
|
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