public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alex Legler" <a3li@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag-web:master commit in: views/
Date: Sun, 22 Feb 2015 00:04:26 +0000 (UTC)	[thread overview]
Message-ID: <1424563456.62e98a914e6110b50f1c88a5af1a23d3c0f6fcd6.a3li@gentoo> (raw)

commit:     62e98a914e6110b50f1c88a5af1a23d3c0f6fcd6
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:04:16 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:04:16 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=62e98a91

more pagination tuning

---
 views/pagination.erb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/views/pagination.erb b/views/pagination.erb
index 68d1a6b..af43309 100644
--- a/views/pagination.erb
+++ b/views/pagination.erb
@@ -13,14 +13,14 @@
     <% end %>
     </li>
     <% min = [1, current_page - 3].max ; max = [max_pages, current_page + 3].min %>
-    <% if min > 10 %>
+    <% if min > 3 %>
       <li><a href="1">1</a></li>
       <li class="disabled"><a href="#">…</a></li>
     <% end %>
     <% (min..max).each do |page| %>
     <li <% if page == current_page %><%= 'class="active"' %><% end %>><a href="<%= page %>"><%= page %></a></li>
     <% end %>
-    <% if (max_pages - max) > 10 %>
+    <% if (max_pages - max) > 3 %>
     <li class="disabled"><a href="#">…</a></li>
     <li><a href="<%= max_pages %>"><%= max_pages %></a></li>
     <% end %>


             reply	other threads:[~2015-02-22  0:04 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-22  0:04 Alex Legler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-26 13:12 [gentoo-commits] proj/ag-web:master commit in: views/ Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 10:47 Alex Legler
2015-02-23 23:55 Alex Legler
2015-02-22 11:05 Alex Legler
2015-02-22 11:02 Alex Legler
2015-02-22  4:38 Robin H. Johnson
2015-02-22  0:15 Alex Legler
2015-02-22  0:14 Alex Legler
2015-02-22  0:03 Alex Legler
2015-02-22  0:01 Alex Legler
2015-02-22  0:00 Alex Legler
2015-02-21 23:57 Alex Legler
2015-02-21 23:49 Robin H. Johnson
2015-02-21 23:41 Robin H. Johnson
2015-02-21 23:39 Robin H. Johnson
2015-02-21 23:34 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424563456.62e98a914e6110b50f1c88a5af1a23d3c0f6fcd6.a3li@gentoo \
    --to=a3li@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox