diff --git a/pylons_app/controllers/admin/settings.py b/pylons_app/controllers/admin/settings.py --- a/pylons_app/controllers/admin/settings.py +++ b/pylons_app/controllers/admin/settings.py @@ -225,6 +225,11 @@ class SettingsController(BaseController) """ # url('admin_settings_my_account') c.user = self.sa.query(User).get(c.hg_app_user.user_id) + c.user_repos = [] + for repo in c.cached_repo_list.values(): + if repo.dbrepo.user.username == c.user.username: + c.user_repos.append(repo) + if c.user.username == 'default': h.flash(_("You can't edit this user since it's" " crucial for entire application"), category='warning') diff --git a/pylons_app/templates/admin/users/user_edit_my_account.html b/pylons_app/templates/admin/users/user_edit_my_account.html --- a/pylons_app/templates/admin/users/user_edit_my_account.html +++ b/pylons_app/templates/admin/users/user_edit_my_account.html @@ -14,7 +14,7 @@ %def> <%def name="main()"> -
+ %if repo.dbrepo.private: + + %else: + + %endif + + ${h.link_to(repo.name, h.url('summary_home',repo_name=repo.name))} | + ##${_('created')} ${repo.dbrepo.} | +${_('last changed')} ${h.age(repo.last_change)} | +${h.link_to(_('[edit]'),h.url('edit_repo',repo_name=repo.name))} | +