From 820337576cb963d9ec33346ef0bbe9d35bc378a6 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 16 Jan 2009 15:45:01 -0800 Subject: [PATCH] Show a lock icon if a Rate is locked. #1915 --- app/views/users/_rates.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/users/_rates.html.erb b/app/views/users/_rates.html.erb index 6b17e73..7e6e203 100644 --- a/app/views/users/_rates.html.erb +++ b/app/views/users/_rates.html.erb @@ -19,12 +19,16 @@ <%= h rate.amount %> + <% if rate.unlocked? %> <%= link_to image_tag('edit.png'), {:action => 'not_implemented', :id => @user, :rate_id => rate }, {:method => :post } %> <%= link_to image_tag('delete.png'), {:action => 'not_implemented', :id => @user, :rate_id => rate }, {:method => :post, :confirm => l(:text_are_you_sure) } %> + <% else %> + <%= image_tag('locked.png') %> + <% end %>