Mercurial > kallithea
diff rhodecode/controllers/admin/repos_groups.py @ 3167:87258a137018 beta
fixed issue with displaying repos in groups view (without lightweight dashboard), added tests for this case
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 18 Jan 2013 01:01:22 +0100 |
parents | 0226b6d6b2b5 |
children | b4daef4cc26d |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos_groups.py Fri Jan 18 00:50:06 2013 +0100 +++ b/rhodecode/controllers/admin/repos_groups.py Fri Jan 18 01:01:22 2013 +0100 @@ -295,7 +295,7 @@ c.groups = self.scm_model.get_repos_groups(groups) if c.visual.lightweight_dashboard is False: - c.repo_list = self.scm_model.get_repos(all_repos=gr_filter) + c.repos_list = self.scm_model.get_repos(all_repos=gr_filter) ## lightweight version of dashboard else: c.repos_list = Repository.query()\ @@ -303,10 +303,10 @@ .order_by(func.lower(Repository.repo_name))\ .all() - repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, - admin=False) - #json used to render the grid - c.data = json.dumps(repos_data) + repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, + admin=False) + #json used to render the grid + c.data = json.dumps(repos_data) return render('admin/repos_groups/repos_groups.html')