summaryrefslogtreecommitdiffstats
path: root/app/views/messages/show.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-13 17:09:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-13 17:09:56 +0000
commitb90e84b9fe252df464d084f0222c65367407a4ba (patch)
tree313fc54f0eb43ebb0d61f33b878c8b5e1af27052 /app/views/messages/show.rhtml
parent75582f80f85528865fa86d93ac57a44337742939 (diff)
downloadredmine-b90e84b9fe252df464d084f0222c65367407a4ba.tar.gz
redmine-b90e84b9fe252df464d084f0222c65367407a4ba.zip
Per project forums added.
Permissions for forums management can be set in "Admin -> Roles & Permissions". Forums can be created on the project settings screen ("Forums" tab). Once a project has a forum, a "Forums" link appears in the project menu. For now, posting messages in forums requires to be logged in. Files can be attached to messages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@529 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages/show.rhtml')
-rw-r--r--app/views/messages/show.rhtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml
new file mode 100644
index 000000000..8f3d83a7e
--- /dev/null
+++ b/app/views/messages/show.rhtml
@@ -0,0 +1,29 @@
+<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @message.subject %></h2>
+
+<p><em><%= @message.author.name %>, <%= format_time(@message.created_on) %></em></p>
+<div class="wiki">
+<%= textilizable(@message.content) %>
+</div>
+<div class="attachments">
+<% @message.attachments.each do |attachment| %>
+<%= link_to attachment.filename, { :action => 'download', :id => @message, :attachment_id => attachment }, :class => 'icon icon-attachment' %>
+(<%= number_to_human_size(attachment.filesize) %>)<br />
+<% end %>
+</div>
+<br />
+<h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
+<% @message.children.each do |message| %>
+ <a name="<%= "message-#{message.id}" %>"></a>
+ <h4><%=h message.subject %> - <%= message.author.name %>, <%= format_time(message.created_on) %></h4>
+ <div class="wiki"><p><%= textilizable message.content %></p></div>
+<% end %>
+
+<p><%= toggle_link l(:button_reply), "reply", :focus => "reply_content" %></p>
+<div id="reply" style="display:none;">
+<%= error_messages_for 'message' %>
+<% form_for :reply, @reply, :url => {:action => 'reply', :id => @message} do |f| %>
+ <p><%= f.text_field :subject, :required => true, :size => 60 %></p>
+ <p><%= f.text_area :content, :required => true, :cols => 80, :rows => 10 %></p>
+ <p><%= submit_tag l(:button_submit) %></p>
+<% end %>
+</div>