git-arr/views
Eric Sunshine 7f2f67629f views: branch/paginate: teach "next" link to respect 'max_pages'
Pagination link "next" does not respect 'max_pages', thus it incorrectly
remains enabled on the final page capped by 'max_pages'. When clicked,
the user is taken to a "404 Page not found" error page, which makes for
a poor user experience.

Fix this problem by teaching the "next" link to respect 'max_pages'.

(As a side-effect, this also causes 'serve' mode to respect 'max_pages',
which was not previously the case. This change of behavior is
appropriate since it brings 'serve' mode, which is intended primarily
for testing, more in line with 'generate' mode.)

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
2015-01-11 21:18:22 +00:00
..
blob.html Fix one-line 'if' termination in tree, blob templates 2014-06-30 08:45:36 +01:00
branch.html views: branch/paginate: teach "next" link to respect 'max_pages' 2015-01-11 21:18:22 +00:00
commit-list.html Initial commit 2012-11-10 17:49:54 +00:00
commit.html Fix committer field in the commit view 2013-11-03 10:57:54 +00:00
index.html Show the age of a repository in the index, via javascript 2013-11-02 22:18:33 +00:00
paginate.html views: branch/paginate: fix incorrectly enabled "next" link 2015-01-11 21:18:22 +00:00
summary.html views: summary: suppress extra horizontal rule when no "master" branch 2015-01-11 21:18:06 +00:00
tree.html views/tree.html: Fix lambda syntax 2014-07-28 23:46:50 +01:00