initial commit
[gitredmine.git] / app / views / messages / .svn / text-base / show.rhtml.svn-base
blob772f0653e5822dbb588bae99a42e155285c197b6
1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @message.subject %></h2>
3 <p><span class="author"><%= authoring @message.created_on, @message.author %></span></p>
4 <div class="wiki">
5 <%= textilizable(@message.content, :attachments => @message.attachments) %>
6 </div>
7 <%= link_to_attachments @message.attachments, :no_author => true %>
8 <br />
10 <h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
11 <% @message.children.each do |message| %>
12   <a name="<%= "message-#{message.id}" %>"></a>
13   <h4><%=h message.subject %> - <%= message.author.name %>, <%= format_time(message.created_on) %></h4>
14   <div class="wiki"><%= textilizable message.content %></div>
15 <% end %>
17 <% if authorize_for('messages', 'reply') %>
18 <p><%= toggle_link l(:button_reply), "reply", :focus => "reply_content" %></p>
19 <div id="reply" style="display:none;">
20 <%= error_messages_for 'message' %>
21 <% form_for :reply, @reply, :url => {:action => 'reply', :id => @message} do |f| %>
22   <p><%= f.text_field :subject, :required => true, :size => 60 %></p>
23   <p><%= f.text_area :content, :required => true, :cols => 80, :rows => 10 %></p>
24   <p><%= submit_tag l(:button_submit) %></p>
25 <% end %>
26 </div>
27 <% end %>