Changesets can be listed by changeset number.
The Git repository is here.
Changeset 447
DRY up Changeset #446.
- Comitted by: rool
- Date: Monday September 02 08:21:02 2013 (over 11 years ago)
Affected files:
- rool/rails/beast/trunk/app/helpers/topics_helper.rb (diff)
- rool/rails/beast/trunk/app/views/topics/show.rhtml (diff)
rool/rails/beast/trunk/app/helpers/topics_helper.rb:
prev. | current | |
module TopicsHelper | ||
2 | def topicshelp_pagination_links_for( post_pages ) | |
3 | pagination_links( | |
4 | post_pages, | |
5 | { | |
6 | :window_size => 10, | |
7 | :params => { :posts_per_page => params[ :posts_per_page ] } | |
8 | } | |
9 | ) | |
10 | end | |
end |
rool/rails/beast/trunk/app/views/topics/show.rhtml:
prev. | current | |
<%= submit_tag( 'Change', { :name => 'posts_per_page_change', :style => 'font-size: 9pt' } ) %> | ||
<% end %> | ||
</div> | ||
90 | ||
90 | <p class="pages">Pages: <strong><%= topicshelp_pagination_links_for( @post_pages ) %></strong></p> | |
<% end -%> | ||
<a name="<%= @posts.first.dom_id %>" id="<%= @posts.first.dom_id %>" class="spacer_link"> </a> | ||
... | ... | |
<% end %> | ||
<% if @post_pages.page_count > 1 -%> | ||
144 | ||
144 | <p class="pages">Pages: <strong><%= topicshelp_pagination_links_for( @post_pages ) %></strong></p> | |
<% end -%> | ||
<% if logged_in? %> |