add user classes on more pages
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<tbody>
|
||||
<% @dashboard.mod_actions.each do |mod_action| %>
|
||||
<tr>
|
||||
<td><%= link_to mod_action.creator.name, user_path(mod_action.creator) %></td>
|
||||
<td><%= link_to mod_action.creator.name, user_path(mod_action.creator), { :class => mod_action.creator.level_class } %></td>
|
||||
<td><%= format_text(mod_action.description) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<tbody>
|
||||
<% @dashboard.user_feedbacks.each do |record| %>
|
||||
<tr class="feedback-category-<%= record.category %>">
|
||||
<td><%= link_to(record.user.name, user_path(record.user)) %></td>
|
||||
<td><%= link_to(record.user.name, user_path(record.user), { :class => record.user.level_class }) %></td>
|
||||
<td><%= format_text(record.body) %></td>
|
||||
<td><%= time_ago_in_words_tagged(record.created_at) %></td>
|
||||
</tr>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<ul>
|
||||
<% @users.each do |user| %>
|
||||
<li><%= link_to user.name, user_path(user) %></li>
|
||||
<li><%= link_to user.name, user_path(user), { :class => user.level_class } %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user