To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / attachments / toggle_active.html.erb @ 918:04114f36670d

History | View | Annotate | Download (282 Bytes)

1 257:3ecf99348b9f chris
<%=
2
file = Attachment.find(params[:id])
3
active_id = "active-" + file.id.to_s
4 258:ce817f379723 chris
link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'),
5 257:3ecf99348b9f chris
  :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file},
6
  :update => active_id
7
%>