annotate rhodecode/templates/files/files_annotate.html @ 2084:feb0fccdcf83 beta

fixed vcs issue with last_changeset for filenodes - fixed incosistency for displaying revision in file browser - fixed raw_diff for git for single file mode - file block now uses associated changeset for both git&hg
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 01 Mar 2012 17:11:26 +0200
parents f91d3f9b7230
children ecd59c28f432
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 &raquo;
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 &raquo;
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()">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
16 ${self.menu('files')}
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
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>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
26 </li>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
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>
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
32 <dl>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
33 <dt style="padding-top:10px;font-size:16px">${_('History')}</dt>
663
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
34 <dd>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
35 <div>
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
36 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
2084
feb0fccdcf83 fixed vcs issue with last_changeset for filenodes
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
37 ${h.hidden('diff2',c.file.changeset.raw_id)}
feb0fccdcf83 fixed vcs issue with last_changeset for filenodes
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
38 ${h.select('diff1',c.file.changeset.raw_id,c.file_history)}
1756
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
39 ${h.submit('diff','diff to revision',class_="ui-btn")}
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
40 ${h.submit('show_rev','show at revision',class_="ui-btn")}
663
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
41 ${h.end_form()}
6199b34d349b fixed html templates, fixed overal rhodecode width to 1024pixels
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
42 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
43 </dd>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 278
diff changeset
44 </dl>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 278
diff changeset
45 <div id="body" class="codeblock">
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
46 <div class="code-header">
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
47 <div class="stats">
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
48 <div class="left"><img src="${h.url('/images/icons/file.png')}"/></div>
2084
feb0fccdcf83 fixed vcs issue with last_changeset for filenodes
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
49 <div class="left item">${h.link_to("r%s:%s" % (c.file.changeset.revision,h.short_id(c.file.changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id))}</div>
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
50 <div class="left item">${h.format_byte_size(c.file.size,binary=True)}</div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
51 <div class="left item last">${c.file.mimetype}</div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
52 <div class="buttons">
1756
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
53 ${h.link_to(_('show source'),h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
54 ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
1756
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
55 ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
56 % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
57 % if not c.file.is_binary:
1756
Marcin Kuzminski <marcin@python-works.com>
parents: 1737
diff changeset
58 ${h.link_to(_('edit'),h.url('files_edit_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path),class_="ui-btn")}
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
59 % endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
60 % endif
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
61 </div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
62 </div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
63 <div class="author">
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
64 <div class="gravatar">
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
65 <img alt="gravatar" src="${h.gravatar_url(h.email(c.cs.author),16)}"/>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
66 </div>
1764
39b49c999efb fixes issue #320.
Marcin Kuzminski <marcin@python-works.com>
parents: 1756
diff changeset
67 <div title="${c.cs.author}" class="user">${h.person(c.cs.author)}</div>
1737
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
68 </div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
69 <div class="commit">${c.file.last_changeset.message}</div>
61eda8bf70d0 new files views
Marcin Kuzminski <marcin@python-works.com>
parents: 1472
diff changeset
70 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 278
diff changeset
71 <div class="code-body">
1043
6ec53c16c744 fixed binary file issues
Marcin Kuzminski <marcin@python-works.com>
parents: 888
diff changeset
72 %if c.file.is_binary:
1241
ed5270522724 changed raw action to show images instead of saying about binary file
Marcin Kuzminski <marcin@python-works.com>
parents: 1171
diff changeset
73 ${_('Binary file (%s)') % c.file.mimetype}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
74 %else:
813
e8b5be26fb78 fixed small issue made on latest patches
Marcin Kuzminski <marcin@python-works.com>
parents: 802
diff changeset
75 % if c.file.size < c.cut_off_limit:
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
76 ${h.pygmentize_annotation(c.repo_name,c.file,linenos=True,anchorlinenos=True,lineanchors='L',cssclass="code-highlight")}
485
9836541b0509 added limit for showing pygemntized source codes larger than 250kb.
Marcin Kuzminski <marcin@python-works.com>
parents: 410
diff changeset
77 %else:
1472
aaec08ad9daf Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents: 1320
diff changeset
78 ${_('File is too 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
79 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
80 %endif
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
81 <script type="text/javascript">
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
82 function highlight_lines(lines){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
83 for(pos in lines){
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
84 YUD.setStyle('L'+lines[pos],'background-color','#FFFFBE');
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
85 }
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
86 }
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
87 page_highlights = location.href.substring(location.href.indexOf('#')+1).split('L');
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
88 if (page_highlights.length == 2){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
89 highlight_ranges = page_highlights[1].split(",");
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
90
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
91 var h_lines = [];
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
92 for (pos in highlight_ranges){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
93 var _range = highlight_ranges[pos].split('-');
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
94 if(_range.length == 2){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
95 var start = parseInt(_range[0]);
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
96 var end = parseInt(_range[1]);
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
97 if (start < end){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
98 for(var i=start;i<=end;i++){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
99 h_lines.push(i);
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
100 }
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
101 }
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
102 }
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
103 else{
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
104 h_lines.push(parseInt(highlight_ranges[pos]));
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
105 }
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
106 }
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
107 highlight_lines(h_lines);
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
108
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
109 //remember original location
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
110 var old_hash = location.href.substring(location.href.indexOf('#'));
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
111
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
112 // this makes a jump to anchor moved by 3 posstions for padding
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
113 window.location.hash = '#L'+Math.max(parseInt(h_lines[0])-3,1);
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
114
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
115 //sets old anchor
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
116 window.location.hash = old_hash;
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
117
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
118 }
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
119 </script>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
120 %endif
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 278
diff changeset
121 </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
122 </div>
1320
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
123 <script type="text/javascript">
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
124 YAHOO.util.Event.onDOMReady(function(){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
125 YUE.on('show_rev','click',function(e){
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
126 YAHOO.util.Event.preventDefault(e);
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
127 var cs = YAHOO.util.Dom.get('diff1').value;
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
128 var url = "${h.url('files_annotate_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs);
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
129 window.location = url;
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
130 });
09c3fb460fcb Fixed problem with anchor link positioning when passed in ranges.
Marcin Kuzminski <marcin@python-works.com>
parents: 1313
diff changeset
131 });
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
132 </script>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
133 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 278
diff changeset
134 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
135 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1764
diff changeset
136 </%def>