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:
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:
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: <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@1295: <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
Chris@1295: <%= submit_tag l(:button_submit) %>
Chris@1295: <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
Chris@1295: <% end %>
Chris@1295:
Chris@1295:
Chris@1295: <% end %>
Chris@1295:
Chris@1295: <% html_title @topic.subject %>