Show More
@@ -225,6 +225,11 b' class SettingsController(BaseController)' | |||
|
225 | 225 | """ |
|
226 | 226 | # url('admin_settings_my_account') |
|
227 | 227 | c.user = self.sa.query(User).get(c.hg_app_user.user_id) |
|
228 | c.user_repos = [] | |
|
229 | for repo in c.cached_repo_list.values(): | |
|
230 | if repo.dbrepo.user.username == c.user.username: | |
|
231 | c.user_repos.append(repo) | |
|
232 | ||
|
228 | 233 | if c.user.username == 'default': |
|
229 | 234 | h.flash(_("You can't edit this user since it's" |
|
230 | 235 | " crucial for entire application"), category='warning') |
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | </%def> |
|
15 | 15 | |
|
16 | 16 | <%def name="main()"> |
|
17 | <div class="box"> | |
|
17 | <div class="box box-left"> | |
|
18 | 18 | <!-- box / title --> |
|
19 | 19 | <div class="title"> |
|
20 | 20 | ${self.breadcrumbs()} |
@@ -76,4 +76,34 b'' | |||
|
76 | 76 | </div> |
|
77 | 77 | ${h.end_form()} |
|
78 | 78 | </div> |
|
79 | ||
|
80 | <div class="box box-right"> | |
|
81 | <!-- box / title --> | |
|
82 | <div class="title"> | |
|
83 | <h5>${_('My repositories')}</h5> | |
|
84 | </div> | |
|
85 | <!-- end box / title --> | |
|
86 | <div class="table"> | |
|
87 | <table> | |
|
88 | <tbody> | |
|
89 | %for repo in c.user_repos: | |
|
90 | <tr> | |
|
91 | <td> | |
|
92 | %if repo.dbrepo.private: | |
|
93 | <img alt="${_('private')}" src="/images/icons/lock.png"/> | |
|
94 | %else: | |
|
95 | <img alt="${_('public')}" src="/images/icons/lock_open.png"/> | |
|
96 | %endif | |
|
97 | ||
|
98 | ${h.link_to(repo.name, h.url('summary_home',repo_name=repo.name))}</td> | |
|
99 | ##<td>${_('created')} ${repo.dbrepo.}</td> | |
|
100 | <td>${_('last changed')} ${h.age(repo.last_change)}</td> | |
|
101 | <td>${h.link_to(_('[edit]'),h.url('edit_repo',repo_name=repo.name))}</td> | |
|
102 | </tr> | |
|
103 | %endfor | |
|
104 | </tbody> | |
|
105 | </table> | |
|
106 | </div> | |
|
107 | ||
|
108 | </div> | |
|
79 | 109 | </%def> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now