# HG changeset patch # User Marcin Kuzminski # Date 2011-02-08 14:41:47 # Node ID 520e67cbb494bb1826f0c7b4c353fab090cd28a2 # Parent 7fd45bf17d07985e1a46dfc16d89ec4b2390302e fixed sorting in maing page by owners diff --git a/rhodecode/controllers/home.py b/rhodecode/controllers/home.py --- a/rhodecode/controllers/home.py +++ b/rhodecode/controllers/home.py @@ -43,7 +43,7 @@ class HomeController(BaseController): 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('-', '') diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -153,6 +153,7 @@ class ScmModel(BaseModel): 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