projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
466f640
)
Improve handling of the case where there is only one page of changesets.
author
Tom Hughes
<tom@compton.nu>
Mon, 14 Sep 2009 23:04:06 +0000
(23:04 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 14 Sep 2009 23:04:06 +0000
(23:04 +0000)
app/views/changeset/_changeset_paging_nav.html.erb
patch
|
blob
|
history
diff --git
a/app/views/changeset/_changeset_paging_nav.html.erb
b/app/views/changeset/_changeset_paging_nav.html.erb
index ce3a79899f4abd021341501c2956547ae032d584..3105425e621601b29553b4a415d733dca4db8206 100644
(file)
--- a/
app/views/changeset/_changeset_paging_nav.html.erb
+++ b/
app/views/changeset/_changeset_paging_nav.html.erb
@@
-7,8
+7,7
@@
if (current_page.first_item < current_page.last_item) # if more than 1 changeset
%>-<%= current_page.last_item %><%
end %>
<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
%>-<%= current_page.last_item %><%
end %>
<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
-<% pagination_links = pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>
-<% if pagination_links %>
- | <%= pagination_links %>
+<% if @edit_pages.item_count > 1 %>
+ | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>
<% end %>
</p>
<% end %>
</p>