Mercurial > hg > soundsoftware-site
comparison app/helpers/calendars_helper.rb @ 523:0b6c82dead28 luisf
Merge from branch "cannam"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 25 Jul 2011 14:23:37 +0100 |
parents | cbce1fd3b1b7 |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
318:f7c525dc7585 | 523:0b6c82dead28 |
---|---|
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 |