diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-11-28 01:45:34 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-11-28 01:45:34 +0100 |
commit | efb0d64a1bb30fc14b9dc81b6b6cde369c27d07f (patch) | |
tree | 9692108811549082f1ef2b86bd780aaeed4a85b6 /rhodecode/controllers | |
parent | 2c7d9ce475b86cfc1de29713e092a3abaed20b2f (diff) |
fixed pager link for file history page
--HG--
branch : beta
Diffstat (limited to 'rhodecode/controllers')
-rw-r--r-- | rhodecode/controllers/shortlog.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rhodecode/controllers/shortlog.py b/rhodecode/controllers/shortlog.py index 1e0c5d6e..fab7852d 100644 --- a/rhodecode/controllers/shortlog.py +++ b/rhodecode/controllers/shortlog.py @@ -66,12 +66,14 @@ class ShortlogController(BaseRepoController): def index(self, repo_name, revision=None, f_path=None): p = safe_int(request.params.get('page', 1), 1) size = safe_int(request.params.get('size', 20), 20) + collection = c.rhodecode_repo + c.file_history = f_path def url_generator(**kw): + if f_path: + return url('shortlog_file_home', repo_name=repo_name, + revision=revision, f_path=f_path, size=size, **kw) return url('shortlog_home', repo_name=repo_name, size=size, **kw) - - collection = c.rhodecode_repo - c.file_history = f_path if f_path: # get the history for the file ! tip_cs = c.rhodecode_repo.get_changeset() |