Added pagination to forums
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
<% @forum.topics.each do |topic| %>
|
||||
<% @topics.each do |topic| %>
|
||||
<tr>
|
||||
<td class="icon"><%= image_tag 'ruby.png' %></td>
|
||||
<td class="description">
|
||||
@@ -45,4 +45,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center">
|
||||
<%= paginate(@topics) %>
|
||||
</div>
|
||||
<div class="right controls"><p><%= link_to "Back to Forum List", forums_path %></p></div>
|
||||
|
||||
Reference in New Issue
Block a user