wiki pages

This commit is contained in:
albert
2012-01-06 18:50:24 -05:00
parent aac315e0b2
commit ef27934125
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
module PostSetPresenters
class WikiPage < Post
def posts
Thread.current["records_per_page"] = 8
Thread.current["records_per_page"] = 4
@post_set.posts
ensure
Thread.current["records_per_page"] = nil

View File

@@ -15,7 +15,7 @@
<tbody>
<% @wiki_pages.each do |wiki_page| %>
<tr>
<td class="tag-category-<%= wiki_page.category_name %>"><%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :nordirect => 1) %></td>
<td class="tag-category-<%= wiki_page.category_name %>"><%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :noredirect => 1) %></td>
<td><%= wiki_page.updated_at.strftime("%m/%d/%Y %I:%M") %> by <%= h wiki_page.creator.name %></td>
</tr>
<% end %>