comparison rhodecode/controllers/changelog.py @ 699:52da7cba88a6 beta

Code refactor for auth func, preparing for ldap support css updates. turned off graph,and branches for git changelog
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 16 Nov 2010 08:52:31 +0100
parents 7486da5f0628
children fd2ea6ceadc8
comparison
equal deleted inserted replaced
698:4cd0709b6d4b 699:52da7cba88a6
72 return render('changelog/changelog.html') 72 return render('changelog/changelog.html')
73 73
74 74
75 def _graph(self, repo, size, p): 75 def _graph(self, repo, size, p):
76 revcount = size 76 revcount = size
77 if not repo.revisions:return json.dumps([]), 0 77 if not repo.revisions or repo.alias == 'git':
78 c.jsdata = json.dumps([])
79 return
78 80
79 max_rev = repo.revisions[-1] 81 max_rev = repo.revisions[-1]
80 82
81 offset = 1 if p == 1 else ((p - 1) * revcount + 1) 83 offset = 1 if p == 1 else ((p - 1) * revcount + 1)
82 84