forum previews working

This commit is contained in:
albert
2011-03-12 16:09:11 -05:00
parent 21cc1cbafa
commit bd520f61f7
29 changed files with 1516 additions and 81 deletions

View File

@@ -1,8 +1,6 @@
<h1>Forum</h1>
<%= render "search" %>
<table width="100%">
<table width="100%" class="striped">
<thead>
<tr>
<th>Title</th>
@@ -14,7 +12,7 @@
<tbody>
<% @forum_topics.each do |topic| %>
<tr>
<td><%= topic.title %></td>
<td><% if topic.is_sticky? %><span class="sticky">Sticky:</span> <% end %><%= link_to topic.title, forum_topic_path(topic) %></td>
<td><%= topic.creator.name %></td>
<td><%= topic.updater.name %></td>
<td><%= compact_time topic.updated_at %></td>