# HG changeset patch # User Marcin Kuzminski # Date 2010-09-02 22:46:07 # Node ID a0a93357f954f15c853c31758be81787a3e38527 # Parent 946d8a680a1dde94acedea17ff35f49fedd43b59 started my page rewrite 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 name="main()"> -
+
${self.breadcrumbs()} @@ -76,4 +76,34 @@
${h.end_form()}
+ +
+ +
+
${_('My repositories')}
+
+ +
+ + + %for repo in c.user_repos: + + + ## + + + + %endfor + +
+ %if repo.dbrepo.private: + ${_('private')} + %else: + ${_('public')} + %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))}
+
+ +
\ No newline at end of file