From 8b710cf9de899eb31fb6759f72606d5d3ae4bffc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 Jan 2008 18:33:55 +0000 Subject: [PATCH] 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 --- app/views/messages/_form.rhtml | 3 ++- app/views/messages/show.rhtml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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' %>