changeset 5932:73e44865f204

repos: show full repo name for my watched repos - don't overload the admin flag
author Mads Kiilerich <madski@unity3d.com>
date Mon, 23 May 2016 18:02:33 +0200
parents 69750b518137
children 0e9bd6876b42
files kallithea/controllers/admin/repo_groups.py kallithea/controllers/home.py kallithea/model/repo.py
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/admin/repo_groups.py	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/controllers/admin/repo_groups.py	Mon May 23 18:02:33 2016 +0200
@@ -339,7 +339,7 @@
                         .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)
 
--- a/kallithea/controllers/home.py	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/controllers/home.py	Mon May 23 18:02:33 2016 +0200
@@ -63,7 +63,7 @@
                         .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)
 
--- a/kallithea/model/repo.py	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/model/repo.py	Mon May 23 18:02:33 2016 +0200
@@ -185,7 +185,7 @@
             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 @@
 
         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)