Mercurial > kallithea
comparison rhodecode/controllers/home.py @ 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 | 07a6e8c65526 |
children | 3fc9183e05dd |
comparison
equal
deleted
inserted
replaced
1004:7fd45bf17d07 | 1005:520e67cbb494 |
---|---|
41 @LoginRequired() | 41 @LoginRequired() |
42 def __before__(self): | 42 def __before__(self): |
43 super(HomeController, self).__before__() | 43 super(HomeController, self).__before__() |
44 | 44 |
45 def index(self): | 45 def index(self): |
46 sortables = ['name', 'description', 'last_change', 'tip', 'contact'] | 46 sortables = ['name', 'description', 'last_change', 'tip', 'owner'] |
47 current_sort = request.GET.get('sort', 'name') | 47 current_sort = request.GET.get('sort', 'name') |
48 current_sort_slug = current_sort.replace('-', '') | 48 current_sort_slug = current_sort.replace('-', '') |
49 | 49 |
50 if current_sort_slug not in sortables: | 50 if current_sort_slug not in sortables: |
51 c.sort_by = 'name' | 51 c.sort_by = 'name' |