Files
@ cd2ee462fc2c
Branch filter:
Location: kallithea/pylons_app/templates/summary/summary.html - annotation
cd2ee462fc2c
4.9 KiB
text/html
implemented yui tooltip, and added it into annotation and main page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 410101210923 178e631df9f9 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 64e1125fc479 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 710e7a75bb6b 64e1125fc479 7c4fa2a66195 6257cf277395 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 6257cf277395 178e631df9f9 178e631df9f9 710e7a75bb6b 710e7a75bb6b 710e7a75bb6b 710e7a75bb6b 710e7a75bb6b 178e631df9f9 178e631df9f9 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 373ddb868bd6 178e631df9f9 0e5455fda8fd 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 7ec4463b6e53 178e631df9f9 7ec4463b6e53 373ddb868bd6 178e631df9f9 178e631df9f9 7ec4463b6e53 7ec4463b6e53 178e631df9f9 178e631df9f9 178e631df9f9 7ec4463b6e53 178e631df9f9 7ec4463b6e53 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 373ddb868bd6 7ec4463b6e53 178e631df9f9 7ec4463b6e53 373ddb868bd6 178e631df9f9 178e631df9f9 7ec4463b6e53 7ec4463b6e53 178e631df9f9 178e631df9f9 178e631df9f9 7ec4463b6e53 178e631df9f9 7ec4463b6e53 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 178e631df9f9 | <%inherit file="/base/base.html"/>
<%!
from pylons_app.lib import filters
%>
<%def name="title()">
${_('Repository managment')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Home',h.url('/'))}
/
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
/
${_('summary')}
</%def>
<%def name="page_nav()">
${self.menu('summary')}
</%def>
<%def name="js()">
<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
<script type="text/javascript">
var E = YAHOO.util.Event;
var D = YAHOO.util.Dom;
E.onDOMReady(function(e){
id = 'clone_url';
E.addListener(id,'click',function(e){
D.get('clone_url').select();
})
})
</script>
</%def>
<%def name="main()">
<h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2>
<dl class="overview">
<dt>${_('name')}</dt>
<dd>${c.repo_info.name}</dd>
<dt>${_('description')}</dt>
<dd>${c.repo_info.description}</dd>
<dt>${_('contact')}</dt>
<dd>${c.repo_info.contact}</dd>
<dt>${_('last change')}</dt>
<dd>${c.repo_info.last_change|n,filters.age} - ${c.repo_info.last_change|n,filters.rfc822date}</dd>
<dt>${_('clone url')}</dt>
<dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="70"/></dd>
<dt>${_('download')}</dt>
<dd>
%for cnt,archive in enumerate(c.repo_info._get_archives()):
%if cnt >=1:
|
%endif
${h.link_to(c.repo_info.name+'.'+archive['type'],
h.url('files_archive_home',repo_name=c.repo_info.name,
revision='tip',fileformat=archive['extension']),class_="archive_logo")}
%endfor
</dd>
<dt>${_('feeds')}</dt>
<dd>
${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.repo_info.name),class_='rss_logo')}
${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=c.repo_info.name),class_='atom_logo')}
</dd>
</dl>
<h2>${h.link_to(_('Last ten changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
<table class="table_disp">
<tr class="header">
<td>${_('date')}</td>
<td>${_('author')}</td>
<td>${_('revision')}</td>
<td>${_('commit message')}</td>
<td>${_('branch')}</td>
<td>${_('tags')}</td>
<td>${_('links')}</td>
</tr>
%for cnt,cs in enumerate(c.repo_changesets):
<tr class="parity${cnt%2}">
<td>${cs._ctx.date()|n,filters.age}</td>
<td>${cs.author|n,filters.person}</td>
<td>r${cs.revision}:${cs.raw_id}</td>
<td>
${h.link_to(h.truncate(cs.message,60),
h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
title=cs.message)}
</td>
<td>
<span class="logtags">
<span class="branchtag">${cs.branch}</span>
</span>
</td>
<td>
<span class="logtags">
%for tag in cs.tags:
<span class="tagtag">${tag}</span>
%endfor
</span>
</td>
<td class="nowrap">
${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
|
${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
</td>
</tr>
%endfor
</table>
<h2>${h.link_to(_('Last ten tags'),h.url('tags_home',repo_name=c.repo_name))}</h2>
<table class="table_disp">
<tr class="header">
<td>${_('date')}</td>
<td>${_('revision')}</td>
<td>${_('name')}</td>
<td>${_('links')}</td>
</tr>
%for cnt,tag in enumerate(c.repo_tags.items()):
<tr class="parity${cnt%2}">
<td>${tag[1]._ctx.date()|n,filters.age}</td>
<td>r${tag[1].revision}:${tag[1].raw_id}</td>
<td>
<span class="logtags">
<span class="tagtag">${h.link_to(tag[0],
h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span>
</span>
</td>
<td class="nowrap">
${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
|
${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
</td>
</tr>
%endfor
</table>
<h2>${h.link_to(_('Last ten branches'),h.url('branches_home',repo_name=c.repo_name))}</h2>
<table class="table_disp">
<tr class="header">
<td>${_('date')}</td>
<td>${_('revision')}</td>
<td>${_('name')}</td>
<td>${_('links')}</td>
</tr>
%for cnt,branch in enumerate(c.repo_branches.items()):
<tr class="parity${cnt%2}">
<td>${branch[1]._ctx.date()|n,filters.age}</td>
<td>r${branch[1].revision}:${branch[1].raw_id}</td>
<td>
<span class="logtags">
<span class="branchtag">${h.link_to(branch[0],
h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span>
</span>
</td>
<td class="nowrap">
${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
|
${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
</td>
</tr>
%endfor
</table>
</%def>
|