# HG changeset patch # User Mads Kiilerich # Date 2016-05-23 18:02:33 # Node ID 73e44865f204d78d7b2f45544bd33409dba838ca # Parent 69750b51813725c210fdb1f08eb46c0be0f88972 repos: show full repo name for my watched repos - don't overload the admin flag diff --git a/kallithea/controllers/admin/repo_groups.py b/kallithea/controllers/admin/repo_groups.py --- a/kallithea/controllers/admin/repo_groups.py +++ b/kallithea/controllers/admin/repo_groups.py @@ -339,7 +339,7 @@ class RepoGroupsController(BaseControlle .all() repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, - admin=False) + admin=False, short_name=True) #json used to render the grid c.data = json.dumps(repos_data) diff --git a/kallithea/controllers/home.py b/kallithea/controllers/home.py --- a/kallithea/controllers/home.py +++ b/kallithea/controllers/home.py @@ -63,7 +63,7 @@ class HomeController(BaseController): .all() repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, - admin=False) + admin=False, short_name=True) #json used to render the grid c.data = json.dumps(repos_data) diff --git a/kallithea/model/repo.py b/kallithea/model/repo.py --- a/kallithea/model/repo.py +++ b/kallithea/model/repo.py @@ -185,7 +185,7 @@ class RepoModel(BaseModel): repo.update_changeset_cache() def get_repos_as_dict(self, repos_list=None, admin=False, perm_check=True, - super_user_actions=False): + super_user_actions=False, short_name=False): _render = self._render_datatable from pylons import tmpl_context as c @@ -194,7 +194,7 @@ class RepoModel(BaseModel): def repo_lnk(name, rtype, rstate, private, fork_of): return _render('repo_name', name, rtype, rstate, private, fork_of, - short_name=not admin, admin=False) + short_name=short_name, admin=False) def last_change(last_change): return _render("last_change", last_change)