Staff is more important then ref and caster on posts.

This commit is contained in:
simplefl 2015-04-11 15:31:11 +02:00
parent abad7ff5f6
commit f28ffce6aa

View file

@ -18,6 +18,9 @@
<% if post.user.admin?%>
<dt><%= namelink Group.find(Group::ADMINS) %></dt>
<dd><%= post.user.groupers.where(:group_id => Group::ADMINS).first.task %></dd>
<% elsif post.user.staff?%>
<dt><%= namelink Group.find(Group::STAFF) %></dt>
<dd><%= post.user.groupers.where(:group_id => Group::STAFF).first.task %></dd>
<% elsif post.user.caster?%>
<dt><%= namelink Group.find(Group::CASTERS) %></dt>
<dd><%= post.user.groupers.where(:group_id => Group::CASTERS).first.task %></dd>