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

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

Chris@1296: Chris@1296:
Chris@1296:

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

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

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

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

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

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

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

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

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

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