Mercurial > kallithea
comparison pylons_app/templates/files/files_annotate.html @ 193:50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 02:00:39 +0200 |
parents | |
children | be4621c6de58 |
comparison
equal
deleted
inserted
replaced
192:f191f99f59c9 | 193:50a39f923f31 |
---|---|
1 <%inherit file="/base/base.html"/> | |
2 | |
3 <%def name="title()"> | |
4 ${_('File annotate')} | |
5 </%def> | |
6 <%def name="breadcrumbs()"> | |
7 ${h.link_to(u'Home',h.url('/'))} | |
8 / | |
9 ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))} | |
10 / | |
11 ${_('files')} | |
12 </%def> | |
13 <%def name="page_nav()"> | |
14 ${self.menu('files')} | |
15 </%def> | |
16 <%def name="css()"> | |
17 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> | |
18 <link rel="stylesheet" href="/css/pygments.css" type="text/css" /> | |
19 </%def> | |
20 <%def name="main()"> | |
21 <h2 class="no-link no-border">${_('Annotate')}</h2> | |
22 <div id="files_data"> | |
23 <h2>${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.file.path)}</h2> | |
24 <dl class="overview"> | |
25 <dt>${_('Revision')}</dt> | |
26 <dd>r${c.file.last_changeset.revision}:${c.file.last_changeset._short}</dd> | |
27 <dt>${_('Size')}</dt> | |
28 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> | |
29 <dt>${_('Options')}</dt> | |
30 <dd>${h.link_to(_('source'), | |
31 h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'), | |
32 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd> | |
33 </dl> | |
34 <div id="body" class="codeblock"> | |
35 <div class="code-header"> | |
36 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${c.file.last_changeset._short}</div> | |
37 <div class="commit" style="font-size:70%">"${c.file_msg}"</div> | |
38 </div> | |
39 <div class="code-body"> | |
40 ${h.pygmentize_annotation(c.annotate,c.repo_name)} | |
41 </div> | |
42 </div> | |
43 </div> | |
44 </%def> |