From: Jean-Philippe Lang Date: Sun, 13 Jan 2008 18:33:55 +0000 (+0000) Subject: Do not show sticky and locked checkboxes when replying to a message. X-Git-Tag: 0.7.0-RC1~224 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b710cf9de899eb31fb6759f72606d5d3ae4bffc;p=redmine.git Do not show sticky and locked checkboxes when replying to a message. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1062 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/messages/_form.rhtml b/app/views/messages/_form.rhtml index c2f7fb569..aa0355070 100644 --- a/app/views/messages/_form.rhtml +++ b/app/views/messages/_form.rhtml @@ -1,11 +1,12 @@ <%= error_messages_for 'message' %> +<% replying ||= false %>


<%= f.text_field :subject, :required => true, :size => 120 %> -<% if User.current.allowed_to?(:edit_messages, @project) %> +<% if !replying && User.current.allowed_to?(:edit_messages, @project) %> <% end %> diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml index bb7e2b7f3..7d4c9989e 100644 --- a/app/views/messages/show.rhtml +++ b/app/views/messages/show.rhtml @@ -32,7 +32,7 @@

<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>