Mercurial > kallithea
comparison rhodecode/templates/journal/journal_page_repos.html @ 2951:301773d07012 beta
Lazy loading on my journal page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 23 Oct 2012 00:02:59 +0200 |
parents | |
children | 91d5f720e88f |
comparison
equal
deleted
inserted
replaced
2950:528c7f210b12 | 2951:301773d07012 |
---|---|
1 %if c.user_repos: | |
2 <div id='repos_list_wrap' class="yui-skin-sam"> | |
3 <table id="repos_list"> | |
4 <thead> | |
5 <tr> | |
6 <th></th> | |
7 <th class="left">${_('Name')}</th> | |
8 <th class="left">${_('Revision')}</th> | |
9 <th class="left">${_('Action')}</th> | |
10 <th class="left">${_('Action')}</th> | |
11 </thead> | |
12 <tbody> | |
13 <%namespace name="dt" file="/data_table/_dt_elements.html"/> | |
14 %for repo in c.user_repos: | |
15 <tr> | |
16 ##QUICK MENU | |
17 <td class="quick_repo_menu"> | |
18 ${dt.quick_menu(repo['name'])} | |
19 </td> | |
20 ##REPO NAME AND ICONS | |
21 <td class="reponame"> | |
22 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],h.AttributeDict(repo['dbrepo_fork']))} | |
23 </td> | |
24 ##LAST REVISION | |
25 <td> | |
26 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])} | |
27 </td> | |
28 ## | |
29 <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td> | |
30 <td> | |
31 ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')} | |
32 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} | |
33 ${h.end_form()} | |
34 </td> | |
35 </tr> | |
36 %endfor | |
37 </tbody> | |
38 </table> | |
39 </div> | |
40 %else: | |
41 <div style="padding:5px 0px 10px 0px;"> | |
42 ${_('No repositories yet')} | |
43 %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |
44 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")} | |
45 %endif | |
46 </div> | |
47 %endif |