Mercurial > hg > soundsoftware-site
comparison app/helpers/calendars_helper.rb @ 514:7eba09d624db live
Merge
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:50:53 +0100 |
parents | cbce1fd3b1b7 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
512:b9aebdd7dd40 | 514:7eba09d624db |
---|---|
30 | 30 |
31 link_to_month((name + ' »'), target_year, target_month, options) | 31 link_to_month((name + ' »'), target_year, target_month, options) |
32 end | 32 end |
33 | 33 |
34 def link_to_month(link_name, year, month, options={}) | 34 def link_to_month(link_name, year, month, options={}) |
35 project_id = options[:project].present? ? options[:project].to_param : nil | 35 link_to_content_update(link_name, params.merge(:year => year, :month => month)) |
36 | |
37 link_target = calendar_path(:year => year, :month => month, :project_id => project_id) | |
38 | |
39 link_to_remote(link_name, | |
40 {:update => "content", :url => link_target, :method => :put}, | |
41 {:href => link_target}) | |
42 | |
43 end | 36 end |
44 | |
45 end | 37 end |