Chris@1295: <%= board_breadcrumb(@message) %> Chris@1295: Chris@1295:
Chris@1295: <%= watcher_link(@topic, User.current) %> Chris@1295: <%= link_to( Chris@1295: l(:button_quote), Chris@1295: {:action => 'quote', :id => @topic}, Chris@1295: :remote => true, Chris@1295: :method => 'get', Chris@1295: :class => 'icon icon-comment', Chris@1295: :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %> Chris@1295: <%= link_to( Chris@1295: l(:button_edit), Chris@1295: {:action => 'edit', :id => @topic}, Chris@1295: :class => 'icon icon-edit' Chris@1295: ) if @message.editable_by?(User.current) %> Chris@1295: <%= link_to( Chris@1295: l(:button_delete), Chris@1295: {:action => 'destroy', :id => @topic}, Chris@1295: :method => :post, Chris@1295: :data => {:confirm => l(:text_are_you_sure)}, Chris@1295: :class => 'icon icon-del' Chris@1295: ) if @message.destroyable_by?(User.current) %> Chris@1295:
Chris@1295: Chris@1295:

<%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %>

Chris@1295: Chris@1295:
Chris@1295:

<%= authoring @topic.created_on, @topic.author %>

Chris@1295:
Chris@1295: <%= textilizable(@topic, :content) %> Chris@1295:
Chris@1295: <%= link_to_attachments @topic, :author => false %> Chris@1295:
Chris@1295:
Chris@1295: Chris@1295: <% unless @replies.empty? %> Chris@1295:

<%= l(:label_reply_plural) %> (<%= @reply_count %>)

Chris@1295: <% @replies.each do |message| %> Chris@1295:
"> Chris@1295:
Chris@1295: <%= link_to( Chris@1295: image_tag('comment.png'), Chris@1295: {:action => 'quote', :id => message}, Chris@1295: :remote => true, Chris@1295: :method => 'get', Chris@1295: :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %> Chris@1295: <%= link_to( Chris@1295: image_tag('edit.png'), Chris@1295: {:action => 'edit', :id => message}, Chris@1295: :title => l(:button_edit) Chris@1295: ) if message.editable_by?(User.current) %> Chris@1295: <%= link_to( Chris@1295: image_tag('delete.png'), Chris@1295: {:action => 'destroy', :id => message}, Chris@1295: :method => :post, Chris@1295: :data => {:confirm => l(:text_are_you_sure)}, Chris@1295: :title => l(:button_delete) Chris@1295: ) if message.destroyable_by?(User.current) %> Chris@1295:
Chris@1295:

Chris@1295: <%= avatar(message.author, :size => "24") %> Chris@1295: <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %> Chris@1295: - Chris@1295: <%= authoring message.created_on, message.author %> Chris@1295:

Chris@1295:
<%= textilizable message, :content, :attachments => message.attachments %>
Chris@1295: <%= link_to_attachments message, :author => false %> Chris@1295:
Chris@1295: <% end %> Chris@1295:

<%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %>

Chris@1295: <% end %> Chris@1295: Chris@1295: <% if !@topic.locked? && authorize_for('messages', 'reply') %> Chris@1295:

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

Chris@1295: Chris@1295: <% end %> Chris@1295: Chris@1295: <% html_title @topic.subject %>