style fixes

This commit is contained in:
albert
2012-09-21 14:26:21 -04:00
parent 7fcedc20b4
commit 5512e0bb79
4 changed files with 16 additions and 4 deletions

View File

@@ -13,12 +13,16 @@
</thead>
<tbody>
<% @forum_topics.each do |topic| %>
<tr class="forum-topic-row <% if topic.updated_at > (CurrentUser.last_forum_read_at || Time.now) %>new-topic<% end %>">
<tr class="forum-topic-row">
<td>
<% if topic.is_sticky? %>
<span class="sticky">Sticky:</span>
<% end %>
<% if topic.updated_at > (CurrentUser.last_forum_read_at || Time.now) %>
<span class="new">NEW</span>
<% end %>
<%= link_to topic.title, forum_topic_path(topic) %>
<% if topic.response_count > 30 %>