From 68a9a871ea251b49b73376109058f66f710ae02a Mon Sep 17 00:00:00 2001 From: joshua stein Date: Wed, 22 Jun 2016 15:30:06 -0500 Subject: [PATCH] user profile: inactive users don't need further qualifiers --- app/views/users/show.html.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 02b04d6..ac37d72 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -27,20 +27,20 @@ > <% if @showing_user.is_banned? %> - Banned + Banned user <% elsif !@showing_user.is_active? %> - Inactive + Inactive user <% else %> Active - <% end %> - <%= @showing_user.is_admin? ? "administrator" : - (@showing_user.is_moderator? ? "moderator" : "user") %> - <% if !@showing_user.can_invite? %> - with invites - <% if !@showing_user.can_submit_stories? %> - and story submissions + <%= @showing_user.is_admin? ? "administrator" : + (@showing_user.is_moderator? ? "moderator" : "user") %> + <% if !@showing_user.can_invite? %> + with invites + <% if !@showing_user.can_submit_stories? %> + and story submissions + <% end %> + disabled <% end %> - disabled <% end %>