[#557] Fix link_to_month to not escape the HTML arrow characters
This commit is contained in:
parent
4d48a6b675
commit
a7ab39dd31
@ -25,7 +25,7 @@ module CalendarsHelper
|
||||
"#{month_name(target_month)}"
|
||||
end
|
||||
|
||||
link_to_month(('« ' + name), target_year, target_month, options)
|
||||
link_to_month(('« ' + h(name)), target_year, target_month, options)
|
||||
end
|
||||
|
||||
def link_to_next_month(year, month, options={})
|
||||
@ -41,10 +41,10 @@ module CalendarsHelper
|
||||
"#{month_name(target_month)}"
|
||||
end
|
||||
|
||||
link_to_month((name + ' »'), target_year, target_month, options)
|
||||
link_to_month((h(name) + ' »'), target_year, target_month, options)
|
||||
end
|
||||
|
||||
def link_to_month(link_name, year, month, options={})
|
||||
link_to_content_update(h(link_name), params.merge(:year => year, :month => month))
|
||||
link_to_content_update(link_name, params.merge(:year => year, :month => month))
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user