Skip to content

Commit

Permalink
actually fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pspeter3 committed Jul 2, 2011
1 parent 02ee42c commit e6ff1ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/pagination/_classic.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- if current_page > 1
=link_to "‹ First", url(controller, action, params.merge("page" => )1)
=link_to "‹ First", url(controller, action, params.merge("page" => 1))

- if previous_page
=link_to "«", url(controller, action, params.merge("page" => previous_page))
Expand Down
8 changes: 4 additions & 4 deletions app/views/shared/pagination/_digg.haml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
=link_to total_pages, url(controller, action, params.merge("page" => total_pages))

- elsif current_page > total_pages - 8
=link_to 1, url(controller, action, params.merge("page" => )1)
=link_to 2, url(controller, action, params.merge("page" => )2)
=link_to 1, url(controller, action, params.merge("page" => 1))
=link_to 2, url(controller, action, params.merge("page" => 2))
…
- (total_pages-9..total_pages).each do |page|
- if page == current_page
Expand All @@ -31,8 +31,8 @@
=link_to page, url(controller, action, params.merge("page" => page))

- else
=link_to 1, url(controller, action, params.merge("page" => )1)
=link_to 2, url(controller, action, params.merge("page" => )2)
=link_to 1, url(controller, action, params.merge("page" => 1))
=link_to 2, url(controller, action, params.merge("page" => 2))
…
- (current_page-5..current_page+5).each do |page|
- if page == current_page
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/pagination/_punbb.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pages:
- if current_page > 3
=link_to 1, url(controller, action, params.merge("page" => )1)
=link_to 1, url(controller, action, params.merge("page" => 1))
- if current_page != 4
…

Expand Down

0 comments on commit e6ff1ca

Please sign in to comment.