Mercurial > kallithea
comparison rhodecode/templates/files/files_annotate.html @ 663:6199b34d349b beta
fixed html templates, fixed overal rhodecode width to 1024pixels
various additional to templates. History for annotation, width for my page, repo types for admin panel repositories
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 06 Nov 2010 16:16:44 +0100 |
parents | ffd07396d315 |
children | d49c0fc1b2d7 |
comparison
equal
deleted
inserted
replaced
662:373ee7031003 | 663:6199b34d349b |
---|---|
7 <%def name="breadcrumbs_links()"> | 7 <%def name="breadcrumbs_links()"> |
8 ${h.link_to(u'Home',h.url('/'))} | 8 ${h.link_to(u'Home',h.url('/'))} |
9 » | 9 » |
10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} | 10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
11 » | 11 » |
12 ${_('annotate')} @ R${c.rev_nr}:${c.cur_rev} | 12 ${_('annotate')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} |
13 </%def> | 13 </%def> |
14 | 14 |
15 <%def name="page_nav()"> | 15 <%def name="page_nav()"> |
16 ${self.menu('files')} | 16 ${self.menu('files')} |
17 </%def> | 17 </%def> |
18 <%def name="main()"> | 18 <%def name="main()"> |
19 <div class="box"> | 19 <div class="box"> |
20 <!-- box / title --> | 20 <!-- box / title --> |
21 <div class="title"> | 21 <div class="title"> |
22 ${self.breadcrumbs()} | 22 ${self.breadcrumbs()} |
23 <ul class="links"> | |
24 <li> | |
25 <span style="text-transform: uppercase;"><a href="#">${_('branch')}: ${c.cs.branch}</a></span> | |
26 </li> | |
27 </ul> | |
23 </div> | 28 </div> |
24 <div class="table"> | 29 <div class="table"> |
25 <div id="files_data"> | 30 <div id="files_data"> |
26 <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.file.path)}</h3> | 31 <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3> |
27 <dl class="overview"> | 32 <dl class="overview"> |
28 <dt>${_('Last revision')}</dt> | 33 <dt>${_('Last revision')}</dt> |
29 <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,c.file.last_changeset.raw_id), | 34 <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)), |
30 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path))} </dd> | 35 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path))} </dd> |
31 <dt>${_('Size')}</dt> | 36 <dt>${_('Size')}</dt> |
32 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> | 37 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> |
33 <dt>${_('Mimetype')}</dt> | 38 <dt>${_('Mimetype')}</dt> |
34 <dd>${c.file.mimetype}</dd> | 39 <dd>${c.file.mimetype}</dd> |
35 <dt>${_('Options')}</dt> | 40 <dt>${_('Options')}</dt> |
36 <dd>${h.link_to(_('show source'), | 41 <dd>${h.link_to(_('show source'), |
37 h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} | 42 h.url('files_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
38 / ${h.link_to(_('show as raw'), | 43 / ${h.link_to(_('show as raw'), |
39 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} | 44 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
40 / ${h.link_to(_('download as raw'), | 45 / ${h.link_to(_('download as raw'), |
41 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} | 46 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
42 </dd> | 47 </dd> |
48 <dt>${_('History')}</dt> | |
49 <dd> | |
50 <div> | |
51 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} | |
52 ${h.hidden('diff2',c.file.last_changeset.raw_id)} | |
53 ${h.select('diff1',c.file.last_changeset.raw_id,c.file_history)} | |
54 ${h.submit('diff','diff to revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
55 ${h.submit('show_rev','show at revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
56 ${h.end_form()} | |
57 </div> | |
58 </dd> | |
43 </dl> | 59 </dl> |
44 <div id="body" class="codeblock"> | 60 <div id="body" class="codeblock"> |
45 <div class="code-header"> | 61 <div class="code-header"> |
46 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${c.file.last_changeset.raw_id}</div> | 62 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${h.short_id(c.file.last_changeset.raw_id)}</div> |
47 <div class="commit">"${c.file_msg}"</div> | 63 <div class="commit">"${c.file.message}"</div> |
48 </div> | 64 </div> |
49 <div class="code-body"> | 65 <div class="code-body"> |
50 % if c.file.size < c.file_size_limit: | 66 % if c.file.size < c.file_size_limit: |
51 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} | 67 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} |
52 %else: | 68 %else: |
53 ${_('File is to big to display')} ${h.link_to(_('show as raw'), | 69 ${_('File is to big to display')} ${h.link_to(_('show as raw'), |
54 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} | 70 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
55 %endif | 71 %endif |
56 </div> | 72 </div> |
57 </div> | 73 </div> |
58 </div> | 74 </div> |
59 </div> | 75 </div> |