Changeset - 73e44865f204
[Not reviewed]
default
0 3 0
Mads Kiilerich - 9 years ago 2016-05-23 18:02:33
madski@unity3d.com
repos: show full repo name for my watched repos - don't overload the admin flag
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/controllers/admin/repo_groups.py
Show inline comments
 
@@ -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)
 

	
kallithea/controllers/home.py
Show inline comments
 
@@ -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)
 

	
kallithea/model/repo.py
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)