From 17e421235b10d7f67c5456d96cd5a3748d1bb87f Mon Sep 17 00:00:00 2001 From: simplefl Date: Sat, 11 Apr 2015 15:31:11 +0200 Subject: [PATCH] Staff is more important then ref and caster on posts. --- app/views/posts/_post.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/posts/_post.html.erb b/app/views/posts/_post.html.erb index 7d92f74..a256089 100644 --- a/app/views/posts/_post.html.erb +++ b/app/views/posts/_post.html.erb @@ -18,6 +18,9 @@ <% if post.user.admin?%>
<%= namelink Group.find(Group::ADMINS) %>
<%= post.user.groupers.where(:group_id => Group::ADMINS).first.task %>
+ <% elsif post.user.staff?%> +
<%= namelink Group.find(Group::STAFF) %>
+
<%= post.user.groupers.where(:group_id => Group::STAFF).first.task %>
<% elsif post.user.caster?%>
<%= namelink Group.find(Group::CASTERS) %>
<%= post.user.groupers.where(:group_id => Group::CASTERS).first.task %>