|
|
|
@ -23,13 +23,11 @@
|
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h3><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h3>
|
|
|
|
|
<div class="borad-title"><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></div>
|
|
|
|
|
|
|
|
|
|
<div class="message">
|
|
|
|
|
<p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
|
|
|
|
|
<div class="wiki">
|
|
|
|
|
<div class="borad-topic-count-message">
|
|
|
|
|
<%= textilizable(@topic, :content) %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= authoring @topic.created_on, @topic.author %>
|
|
|
|
|
<%= link_to_attachments @topic, :author => false %>
|
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
@ -38,7 +36,7 @@
|
|
|
|
|
<h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
|
|
|
|
|
<% @replies.each do |message| %>
|
|
|
|
|
<div class="message reply" id="<%= "message-#{message.id}" %>">
|
|
|
|
|
<div class="contextual">
|
|
|
|
|
<div class="contextual-borad">
|
|
|
|
|
<%= link_to(
|
|
|
|
|
image_tag('comment.png'),
|
|
|
|
|
{:action => 'quote', :id => message},
|
|
|
|
@ -58,15 +56,25 @@
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
) if message.destroyable_by?(User.current) %>
|
|
|
|
|
</div>
|
|
|
|
|
<h4>
|
|
|
|
|
|
|
|
|
|
<table class="borad-text-list">
|
|
|
|
|
<tr><td rowspan="3" valign="top" width="60px"><%= link_to image_tag(url_to_avatar(message.author), :class => "avatar"), user_path(message.author) %></td>
|
|
|
|
|
<td class="comments"><div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
|
<%= link_to_attachments message, :author => false %>
|
|
|
|
|
</div> </td></tr>
|
|
|
|
|
<tr><td><%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %></td></tr>
|
|
|
|
|
<tr><td class="font_lighter"><%= authoring message.created_on, message.author %></td></tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<!-- <h4>
|
|
|
|
|
<%= avatar(message.author, :size => "24") %>
|
|
|
|
|
<%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
|
|
|
|
|
-
|
|
|
|
|
<%= authoring message.created_on, message.author %>
|
|
|
|
|
</h4>
|
|
|
|
|
<div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
|
<%= link_to_attachments message, :author => false %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= link_to_attachments message, :author => false %> -->
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></div>
|
|
|
|
|
<% end %>
|
|
|
|
|