user trees: hide moderator karma, as done on profiles - merged with i18n

This commit is contained in:
Carl Chenet 2017-05-23 13:01:21 +02:00
parent 5a3ac372b8
commit 4537718dce
2 changed files with 4 additions and 6 deletions

View file

@ -15,11 +15,10 @@
><%= user.username %></a>
<% if user.is_admin? %>
<%= t('.moderator') %>
<% elsif user.is_moderator? %>
<%= t('.moderator') %>
<% else %>
(<%= user.karma %>)
<% if user.is_moderator? %>
<%= t('.administrator') %>
<% end %>
<% end %>
</li>
<% end %>

View file

@ -29,11 +29,10 @@
><%= user.username %></a>
<% if user.is_admin? %>
<%= t('.administrator') %>
<% elsif user.is_moderator? %>
<%= t('.moderator') %>
<% else %>
(<%= user.karma %>)
<% if user.is_moderator? %>
<%= t('.moderator') %>(moderator)
<% end %>
<% end %>
<% if (children = @users_by_parent[user.id]) %>
<% # drill down deeper in the tree %>