wiki pages
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user