annotate app/views/attachments/toggle_active.rhtml @ 307:c7d3b58bd01c
feature_117
Produce a single en.yml which contains British texts but describes itself as just English.
The difference between en and en-GB is minimal for this application, apart from date formats, and the pain in maintaining both is significant. See #117 and #58.
author |
Chris Cannam |
date |
Mon, 28 Mar 2011 17:41:07 +0100 |
parents |
ce817f379723 |
children |
|
rev |
line source |
chris@257
|
1 <%=
|
chris@257
|
2 file = Attachment.find(params[:id])
|
chris@257
|
3 active_id = "active-" + file.id.to_s
|
chris@258
|
4 link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'),
|
chris@257
|
5 :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file},
|
chris@257
|
6 :update => active_id
|
chris@257
|
7 %>
|