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:
Toks
2013-03-30 10:31:20 -04:00
parent eed6ece3ec
commit 4f42ab8bdb
16 changed files with 24 additions and 24 deletions

View File

@@ -43,7 +43,7 @@
<%= compact_time(wiki_page_version.updated_at) %>
<% if wiki_page_version.updater %>
by
<%= link_to wiki_page_version.updater_name, user_path(wiki_page_version.updater) %>
<%= link_to wiki_page_version.updater_name, user_path(wiki_page_version.updater), { :class => wiki_page_version.updater.level_class } %>
<% end %>
</td>
</tr>