Mercurial > kallithea
changeset 1005:520e67cbb494 beta
fixed sorting in maing page by owners
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 08 Feb 2011 15:41:47 +0100 |
parents | 7fd45bf17d07 |
children | 02246101c846 |
files | rhodecode/controllers/home.py rhodecode/model/scm.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/home.py Tue Feb 08 15:06:41 2011 +0100 +++ b/rhodecode/controllers/home.py Tue Feb 08 15:41:47 2011 +0100 @@ -43,7 +43,7 @@ super(HomeController, self).__before__() def index(self): - sortables = ['name', 'description', 'last_change', 'tip', 'contact'] + sortables = ['name', 'description', 'last_change', 'tip', 'owner'] current_sort = request.GET.get('sort', 'name') current_sort_slug = current_sort.replace('-', '')
--- a/rhodecode/model/scm.py Tue Feb 08 15:06:41 2011 +0100 +++ b/rhodecode/model/scm.py Tue Feb 08 15:41:47 2011 +0100 @@ -153,6 +153,7 @@ tmp_d['rev'] = tip.revision tmp_d['contact'] = repo.dbrepo.user.full_contact tmp_d['contact_sort'] = tmp_d['contact'] + tmp_d['owner_sort'] = tmp_d['contact'] tmp_d['repo_archives'] = list(repo._get_archives()) tmp_d['last_msg'] = tip.message tmp_d['repo'] = repo