Fixed topcis#show
This commit is contained in:
@@ -12,13 +12,14 @@
|
||||
<div>
|
||||
<table>
|
||||
<% @topic.posts.each do |post| %>
|
||||
<% if !post.user.blank? %>
|
||||
<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><strong><%= "Administrator" if post.user.admin? %></strong></p>
|
||||
Posts <%= post.user.posts.size %><br />
|
||||
Posts <%= post.user.posts_count %><br />
|
||||
Registered <%=l post.user.created_at %><br />
|
||||
</span>
|
||||
</td>
|
||||
@@ -38,6 +39,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<%end%>
|
||||
<% end %>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user