From e5e579daae44f91a5479ca5eff3c9d0e14d7b1ab Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 28 Jan 2013 01:40:54 -0500 Subject: [PATCH] Added lables for mods and banned --- app/views/posts/show.html.erb | 12 +++++++++++- app/views/topics/show.html.erb | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index f1dc489..ebf9fa1 100755 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -18,7 +18,17 @@ <%= @post.user.username %> <%= image_tag @post.user.gravatar_url %> -

<%= "Administrator" if @post.user.admin? %>

+

+ <% if @post.user.admin? %> + Administrator + <% end %> + <% if @post.user.moderator? %> + Moderator + <% end %> + <% if @post.user.banned? %> + Banned + <% end %> +

Posts <%= @post.user.posts_count %>
Registered <%=l @post.user.created_at %>
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 3390c61..54bbf3e 100755 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -33,7 +33,17 @@ <%= post.user.username %> <%= image_tag post.user.gravatar_url %> -

<%= "Administrator" if post.user.admin? %>

+

+ <% if post.user.admin? %> + Administrator + <% end %> + <% if post.user.moderator? %> + Moderator + <% end %> + <% if post.user.banned? %> + Banned + <% end %> +

Posts <%= post.user.posts_count %>
Registered <%=l post.user.created_at %>