annotate rhodecode/templates/journal/journal_page_repos.html @ 2977:cff9d4e1d821 beta

Fixed issue when node didn't exists at 'tip' and we tried calculate history based on that assumption. Now fallback to the changeset the node exists in for history calculation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 04 Nov 2012 13:08:27 +0100
parents 9937afa7f093
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2951
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 %if c.user_repos:
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <div id='repos_list_wrap' class="yui-skin-sam">
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 <table id="repos_list">
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <thead>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 <tr>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 <th></th>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 <th class="left">${_('Name')}</th>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 <th class="left">${_('Revision')}</th>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 <th class="left">${_('Action')}</th>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 <th class="left">${_('Action')}</th>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 </thead>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <tbody>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 %for repo in c.user_repos:
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 <tr>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 ##QUICK MENU
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
17 <td class="quick_repo_menu">
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18 ${dt.quick_menu(repo['name'])}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 </td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 ##REPO NAME AND ICONS
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 <td class="reponame">
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],h.AttributeDict(repo['dbrepo_fork']))}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 </td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
24 ##LAST REVISION
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 <td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
26 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
27 </td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
28 ##
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
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>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
30 <td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
31 ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
2960
91d5f720e88f fixes issue #614 Include repo name in delete confirmation for my repos page
Marcin Kuzminski <marcin@python-works.com>
parents: 2951
diff changeset
32 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo['name']+"');")}
2951
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
33 ${h.end_form()}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
34 </td>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
35 </tr>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
36 %endfor
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
37 </tbody>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
38 </table>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
39 </div>
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
40 %else:
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
41 <div style="padding:5px 0px 10px 0px;">
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
42 ${_('No repositories yet')}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
43 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
44 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
45 %endif
301773d07012 Lazy loading on my journal page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
46 </div>
2973
9937afa7f093 whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 2960
diff changeset
47 %endif