Mercurial > kallithea
comparison rhodecode/controllers/shortlog.py @ 3041:a41f0f978185 beta
fixed pager link for file history page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 28 Nov 2012 01:45:34 +0100 |
parents | ec483ce69ad9 |
children | 303878dc3dac |
comparison
equal
deleted
inserted
replaced
3040:ec483ce69ad9 | 3041:a41f0f978185 |
---|---|
64 redirect(h.url('shortlog_home', repo_name=repo_name)) | 64 redirect(h.url('shortlog_home', repo_name=repo_name)) |
65 | 65 |
66 def index(self, repo_name, revision=None, f_path=None): | 66 def index(self, repo_name, revision=None, f_path=None): |
67 p = safe_int(request.params.get('page', 1), 1) | 67 p = safe_int(request.params.get('page', 1), 1) |
68 size = safe_int(request.params.get('size', 20), 20) | 68 size = safe_int(request.params.get('size', 20), 20) |
69 collection = c.rhodecode_repo | |
70 c.file_history = f_path | |
69 | 71 |
70 def url_generator(**kw): | 72 def url_generator(**kw): |
73 if f_path: | |
74 return url('shortlog_file_home', repo_name=repo_name, | |
75 revision=revision, f_path=f_path, size=size, **kw) | |
71 return url('shortlog_home', repo_name=repo_name, size=size, **kw) | 76 return url('shortlog_home', repo_name=repo_name, size=size, **kw) |
72 | |
73 collection = c.rhodecode_repo | |
74 c.file_history = f_path | |
75 if f_path: | 77 if f_path: |
76 # get the history for the file ! | 78 # get the history for the file ! |
77 tip_cs = c.rhodecode_repo.get_changeset() | 79 tip_cs = c.rhodecode_repo.get_changeset() |
78 try: | 80 try: |
79 collection = tip_cs.get_file_history(f_path) | 81 collection = tip_cs.get_file_history(f_path) |