Mercurial > kallithea
annotate rhodecode/templates/files/files_annotate.html @ 1043:6ec53c16c744 beta
fixed binary file issues
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 14 Feb 2011 15:29:53 +0100 |
parents | 6b40654afa1e |
children | 2ab211e0aecd |
rev | line source |
---|---|
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 <%inherit file="/base/base.html"/> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <%def name="title()"> |
619
a1ec653f5f95
#38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents:
547
diff
changeset
|
4 ${c.repo_name} ${_('File annotate')} - ${c.rhodecode_name} |
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
6 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
7 <%def name="breadcrumbs_links()"> |
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 ${h.link_to(u'Home',h.url('/'))} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
9 » |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
11 » |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
12 ${_('annotate')} @ R${c.cs.revision}:${h.short_id(c.cs.raw_id)} |
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
14 |
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 <%def name="page_nav()"> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 ${self.menu('files')} |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 </%def> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <%def name="main()"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
19 <div class="box"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
20 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
21 <div class="title"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
22 ${self.breadcrumbs()} |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
23 <ul class="links"> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
24 <li> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
25 <span style="text-transform: uppercase;"><a href="#">${_('branch')}: ${c.cs.branch}</a></span> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
26 </li> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
27 </ul> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
28 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
29 <div class="table"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
30 <div id="files_data"> |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
31 <h3 class="files_location">${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.revision,c.file.path)}</h3> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
32 <dl class="overview"> |
802
4a7432d0a1a5
fixed file source and annotation revision links
Marcin Kuzminski <marcin@python-works.com>
parents:
695
diff
changeset
|
33 <dt>${_('Revision')}</dt> |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
34 <dd>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)), |
802
4a7432d0a1a5
fixed file source and annotation revision links
Marcin Kuzminski <marcin@python-works.com>
parents:
695
diff
changeset
|
35 h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))} </dd> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
36 <dt>${_('Size')}</dt> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
37 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> |
496
47f4c7ff245b
added mimetypes to annotate
Marcin Kuzminski <marcin@python-works.com>
parents:
485
diff
changeset
|
38 <dt>${_('Mimetype')}</dt> |
47f4c7ff245b
added mimetypes to annotate
Marcin Kuzminski <marcin@python-works.com>
parents:
485
diff
changeset
|
39 <dd>${c.file.mimetype}</dd> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
40 <dt>${_('Options')}</dt> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
41 <dd>${h.link_to(_('show source'), |
695
d49c0fc1b2d7
fixed annotation show_at_revision bug.
Marcin Kuzminski <marcin@python-works.com>
parents:
663
diff
changeset
|
42 h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} |
485
9836541b0509
added limit for showing pygemntized source codes larger than 250kb.
Marcin Kuzminski <marcin@python-works.com>
parents:
410
diff
changeset
|
43 / ${h.link_to(_('show as raw'), |
695
d49c0fc1b2d7
fixed annotation show_at_revision bug.
Marcin Kuzminski <marcin@python-works.com>
parents:
663
diff
changeset
|
44 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
45 / ${h.link_to(_('download as raw'), |
695
d49c0fc1b2d7
fixed annotation show_at_revision bug.
Marcin Kuzminski <marcin@python-works.com>
parents:
663
diff
changeset
|
46 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
47 </dd> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
48 <dt>${_('History')}</dt> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
49 <dd> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
50 <div> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
51 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
52 ${h.hidden('diff2',c.file.last_changeset.raw_id)} |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
53 ${h.select('diff1',c.file.last_changeset.raw_id,c.file_history)} |
888
6b40654afa1e
css optimizations
Marcin Kuzminski <marcin@python-works.com>
parents:
813
diff
changeset
|
54 ${h.submit('diff','diff to revision',class_="ui-button")} |
6b40654afa1e
css optimizations
Marcin Kuzminski <marcin@python-works.com>
parents:
813
diff
changeset
|
55 ${h.submit('show_rev','show at revision',class_="ui-button")} |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
56 ${h.end_form()} |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
57 </div> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
58 </dd> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
59 </dl> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
60 <div id="body" class="codeblock"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
61 <div class="code-header"> |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
62 <div class="revision">${c.file.name}@r${c.file.last_changeset.revision}:${h.short_id(c.file.last_changeset.raw_id)}</div> |
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
63 <div class="commit">"${c.file.message}"</div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
64 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
65 <div class="code-body"> |
1043
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
66 %if c.file.is_binary: |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
67 ${_('Binary file')} |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
68 %else: |
813
e8b5be26fb78
fixed small issue made on latest patches
Marcin Kuzminski <marcin@python-works.com>
parents:
802
diff
changeset
|
69 % if c.file.size < c.cut_off_limit: |
485
9836541b0509
added limit for showing pygemntized source codes larger than 250kb.
Marcin Kuzminski <marcin@python-works.com>
parents:
410
diff
changeset
|
70 ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} |
9836541b0509
added limit for showing pygemntized source codes larger than 250kb.
Marcin Kuzminski <marcin@python-works.com>
parents:
410
diff
changeset
|
71 %else: |
9836541b0509
added limit for showing pygemntized source codes larger than 250kb.
Marcin Kuzminski <marcin@python-works.com>
parents:
410
diff
changeset
|
72 ${_('File is to big to display')} ${h.link_to(_('show as raw'), |
663
6199b34d349b
fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
73 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
1043
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
74 %endif |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
75 <script type="text/javascript"> |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
76 YAHOO.util.Event.onDOMReady(function(){ |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
77 YAHOO.util.Event.addListener('show_rev','click',function(e){ |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
78 YAHOO.util.Event.preventDefault(e); |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
79 var cs = YAHOO.util.Dom.get('diff1').value; |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
80 var url = "${h.url('files_annotate_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs); |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
81 window.location = url; |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
82 }); |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
83 }); |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
84 </script> |
6ec53c16c744
fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
85 %endif |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
86 </div> |
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.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
87 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
88 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
89 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
90 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
278
diff
changeset
|
91 </%def> |