improvements to topic listing
This commit is contained in:
@@ -1011,6 +1011,14 @@ div#c-forum-topics {
|
|||||||
border-top: 1px solid #AAA;
|
border-top: 1px solid #AAA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.last-page {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.locked-topic {
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,23 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<% @forum_topics.each do |topic| %>
|
<% @forum_topics.each do |topic| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><% if topic.is_sticky? %><span class="sticky">Sticky:</span> <% end %><%= link_to topic.title, forum_topic_path(topic) %></td>
|
<td>
|
||||||
<td><%= topic.creator.name %></td>
|
<% if topic.is_sticky? %>
|
||||||
<td><%= topic.updater.name %></td>
|
<span class="sticky">Sticky:</span>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<%= link_to topic.title, forum_topic_path(topic) %>
|
||||||
|
|
||||||
|
<% if topic.response_count > 30 %>
|
||||||
|
<%= link_to "last", forum_topic_path(topic, :page => (topic.response_count / 30.0).ceil), :class => "last-page" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if topic.is_locked? %>
|
||||||
|
<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><%= compact_time topic.updated_at %></td>
|
<td><%= compact_time topic.updated_at %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user