# HG changeset patch # User Mads Kiilerich # Date 2018-04-23 00:44:13 # Node ID a86ebf58c720e31d4bc07b1c0d103733c8bd971c # Parent b90b82881398bd987da37397d92da976ef140c0b templates: drop unused get_repos_as_dict super_user parameter It was perhaps at some point used to show a content menu. diff --git a/kallithea/controllers/admin/repos.py b/kallithea/controllers/admin/repos.py --- a/kallithea/controllers/admin/repos.py +++ b/kallithea/controllers/admin/repos.py @@ -101,9 +101,7 @@ class ReposController(BaseRepoController _list = Repository.query(sorted=True).all() c.repos_list = RepoList(_list, perm_level='admin') - repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, - admin=True, - super_user_actions=True) + repos_data = RepoModel().get_repos_as_dict(repos_list=c.repos_list, admin=True) # data used to render the grid c.data = repos_data diff --git a/kallithea/model/repo.py b/kallithea/model/repo.py --- a/kallithea/model/repo.py +++ b/kallithea/model/repo.py @@ -151,7 +151,7 @@ class RepoModel(object): def get_repos_as_dict(self, repos_list=None, repo_groups_list=None, admin=False, perm_check=True, - super_user_actions=False, short_name=False): + short_name=False): _render = self._render_datatable from tg import tmpl_context as c @@ -180,7 +180,7 @@ class RepoModel(object): return _render("repo_state", repo_state) def repo_actions(repo_name): - return _render('repo_actions', repo_name, super_user_actions) + return _render('repo_actions', repo_name) def owner_actions(owner_id, username): return _render('user_name', owner_id, username) diff --git a/kallithea/templates/data_table/_dt_elements.html b/kallithea/templates/data_table/_dt_elements.html --- a/kallithea/templates/data_table/_dt_elements.html +++ b/kallithea/templates/data_table/_dt_elements.html @@ -61,7 +61,7 @@ %endif -<%def name="repo_actions(repo_name, super_user=True)"> +<%def name="repo_actions(repo_name)">