# HG changeset patch # User Chris Cannam # Date 1299250222 0 # Node ID ce817f379723a4d5fb22f9be721500e7b4a2d5c1 # Parent 3ecf99348b9f4ee52736a39aa586963958b2a17a * Use fav/fav-off instead of true/false icons. False looks too much like delete. diff -r 3ecf99348b9f -r ce817f379723 app/views/attachments/toggle_active.rhtml --- a/app/views/attachments/toggle_active.rhtml Fri Mar 04 12:46:26 2011 +0000 +++ b/app/views/attachments/toggle_active.rhtml Fri Mar 04 14:50:22 2011 +0000 @@ -1,7 +1,7 @@ <%= file = Attachment.find(params[:id]) active_id = "active-" + file.id.to_s -link_to_remote image_tag(file.active? ? 'true.png' : 'false.png'), +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 %> diff -r 3ecf99348b9f -r ce817f379723 app/views/files/index.html.erb --- a/app/views/files/index.html.erb Fri Mar 04 12:46:26 2011 +0000 +++ b/app/views/files/index.html.erb Fri Mar 04 14:50:22 2011 +0000 @@ -33,7 +33,7 @@ <% if active_change_allowed active_id = "active-" + file.id.to_s -%>
- <%= link_to_remote image_tag(file.active? ? 'true.png' : 'false.png'), + <%= 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 %>