changeset 258:ce817f379723 feature_80

* Use fav/fav-off instead of true/false icons. False looks too much like delete.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 04 Mar 2011 14:50:22 +0000
parents 3ecf99348b9f
children a5d526f6d88a
files app/views/attachments/toggle_active.rhtml app/views/files/index.html.erb
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 %>
--- 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 -%>
         <div id="<%= active_id %>">
-        <%= 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
         %>