Mercurial > hg > soundsoftware-site
view app/views/attachments/toggle_active.rhtml @ 676:4fcd6ca1825c feature_36
Transplant rev f3e35d639aa4 from live branch
author | Chris Cannam |
---|---|
date | Tue, 13 Sep 2011 17:17:27 +0100 |
parents | ce817f379723 |
children |
line wrap: on
line source
<%= file = Attachment.find(params[:id]) active_id = "active-" + file.id.to_s link_to_remote image_tag(file.active? ? 'fav.png' : 'fav_off.png'), :url => {:controller => 'attachments', :action => 'toggle_active', :project_id => @project.id, :id => file}, :update => active_id %>