41 lines
1.6 KiB
Plaintext
Executable File
41 lines
1.6 KiB
Plaintext
Executable File
<div class="module">
|
|
<div class="module_header">
|
|
<%= link_to @topic.title, topic_path(@topic) %>
|
|
<span class="right controls">
|
|
</span>
|
|
</div>
|
|
<div>
|
|
<table>
|
|
<tr>
|
|
<td class="post_author" rowspan="2">
|
|
<span class="name"><%= @post.user.username %></span>
|
|
<span class="avatar"><%= image_tag @post.user.gravatar_url %></span>
|
|
<span class="info smaller">
|
|
<p><span class="label label-important"><%= "Administrator" if @post.user.admin? %></span></p>
|
|
Posts <%= @post.user.posts_count %><br />
|
|
Registered <%=l @post.user.created_at %><br />
|
|
</span>
|
|
</td>
|
|
<td class="post_header">
|
|
<span class="left post_date smaller">
|
|
<a name="<%= @post.id %>"> <%= link_to ("#"+ @post.id.to_s ), post_path(@post) %> </a>
|
|
Posted <%=l @post.created_at %>
|
|
</span>
|
|
<span class="right controls">
|
|
<%= link_to "Edit", edit_post_path(@post) if can? :update, @post %>
|
|
<%= link_to "Delete", @post, :confirm => "Are you sure?", :method => :delete if can? :destroy, @post %>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="post_body">
|
|
<%= @post.body.bbcode_to_html(@my_blockquote).html_safe %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: center">
|
|
</div>
|
|
<div class="right controls"><p><%= link_to "Back to Forum", forum_path(@topic.forum) %></p></div>
|