diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 14:15:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 14:15:52 +0000 |
commit | 88339fd98b8214f2f42fce28728b71eeccd20396 (patch) | |
tree | ce428e9c29c5009e2cba66fd03cc2d1bef375c9c /app | |
parent | 5a5d02dfb5b7c8b89e37090584bff4a2590a0281 (diff) | |
download | redmine-88339fd98b8214f2f42fce28728b71eeccd20396.tar.gz redmine-88339fd98b8214f2f42fce28728b71eeccd20396.zip |
Do not show 'Quote' links on locked topics (#4749).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3377 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/messages/show.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml index ec6fd4fa9..5c949d48f 100644 --- a/app/views/messages/show.rhtml +++ b/app/views/messages/show.rhtml @@ -3,7 +3,7 @@ <div class="contextual"> <%= watcher_tag(@topic, User.current) %> - <%= link_to_remote_if_authorized l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment' %> + <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment') unless @topic.locked? %> <%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit') if @message.editable_by?(User.current) %> <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %> </div> @@ -24,7 +24,7 @@ <% @replies.each do |message| %> <div class="message reply" id="<%= "message-#{message.id}" %>"> <div class="contextual"> - <%= link_to_remote_if_authorized image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote) %> + <%= link_to_remote_if_authorized(image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote)) unless @topic.locked? %> <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %> <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %> </div> |