Changeset - a41f0f978185
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-11-28 01:45:34
marcin@python-works.com
fixed pager link for file history page
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/shortlog.py
Show inline comments
 
@@ -66,12 +66,14 @@ class ShortlogController(BaseRepoControl
 
    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()
0 comments (0 inline, 0 general)