Added lables for mods and banned
This commit is contained in:
@@ -18,7 +18,17 @@
|
||||
<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>
|
||||
<p>
|
||||
<% if @post.user.admin? %>
|
||||
<span class="label label-inverse">Administrator</span>
|
||||
<% end %>
|
||||
<% if @post.user.moderator? %>
|
||||
<span class="label label-warning">Moderator</span>
|
||||
<% end %>
|
||||
<% if @post.user.banned? %>
|
||||
<span class="label label-important">Banned</span>
|
||||
<% end %>
|
||||
</p>
|
||||
Posts <%= @post.user.posts_count %><br />
|
||||
Registered <%=l @post.user.created_at %><br />
|
||||
</span>
|
||||
|
||||
@@ -33,7 +33,17 @@
|
||||
<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>
|
||||
<p>
|
||||
<% if post.user.admin? %>
|
||||
<span class="label label-inverse">Administrator</span>
|
||||
<% end %>
|
||||
<% if post.user.moderator? %>
|
||||
<span class="label label-warning">Moderator</span>
|
||||
<% end %>
|
||||
<% if post.user.banned? %>
|
||||
<span class="label label-important">Banned</span>
|
||||
<% end %>
|
||||
</p>
|
||||
Posts <%= post.user.posts_count %><br />
|
||||
Registered <%=l post.user.created_at %><br />
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user