adds support for user level-dependent classes
all links to users should have their class attribute set to that user's level_class
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
<span class="locked-topic">(locked)</span>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= link_to topic.creator.name, user_path(topic.creator) %></td>
|
||||
<td><%= link_to topic.updater.name, user_path(topic.updater) %></td>
|
||||
<td><%= link_to topic.creator.name, user_path(topic.creator), { :class => topic.creator.level_class } %></td>
|
||||
<td><%= link_to topic.updater.name, user_path(topic.updater), { :class => topic.updater.level_class } %></td>
|
||||
<td><%= compact_time topic.updated_at %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user