journalduhacker/app/views/users/list.html.erb

27 lines
600 B
Plaintext
Raw Normal View History

<div class="box wide">
<p>
<strong><%= @title %> (<%= @user_count %>)</strong>
</p>
<ul class="user_tree">
<% @users.each do |user| %>
<li>
<a href="/u/<%= user.username %>"
<% if !user.is_active? %>
class="inactive_user"
<% elsif user.is_new? %>
class="new_user"
<% end %>
2015-08-01 05:26:34 +02:00
><%= user.username %></a>
<% if user.is_admin? %>
2016-11-15 14:40:55 +01:00
<%= t('.moderator') %>
<% elsif user.is_moderator? %>
<%= t('.moderator') %>
2015-08-01 05:26:34 +02:00
<% else %>
(<%= user.karma %>)
<% end %>
</li>
<% end %>
</ul>
</div>