##// END OF EJS Templates
#4: changes proposed by feedback to annotation
marcink -
r278:ed7abf92 default
parent child Browse files
Show More
@@ -84,10 +84,9 b' def pygmentize_annotation(filenode, **kw'
84 return "color: rgb(%s) ! important;" % (','.join(col))
84 return "color: rgb(%s) ! important;" % (','.join(col))
85
85
86 def url_func(changeset):
86 def url_func(changeset):
87 return '%s\n' % (link_to(changeset.raw_id,
87 return '%s\n' % (link_to('r%s:%s' % (changeset.revision, changeset.raw_id),
88 url('changeset_home', repo_name='test', revision=changeset.raw_id),
88 url('changeset_home', repo_name='test', revision=changeset.raw_id),
89 title=_('author') + ':%s rev:%s %s' % (changeset.author, changeset.revision,
89 title=_('author') + ':%s - %s' % (changeset.author, changeset.message,),
90 changeset.message,),
91 style=get_color_string(changeset.raw_id)))
90 style=get_color_string(changeset.raw_id)))
92
91
93 return literal(annotate_highlight(filenode, url_func, **kwargs))
92 return literal(annotate_highlight(filenode, url_func, **kwargs))
@@ -28,7 +28,10 b''
28 <%include file='files_source.html'/>
28 <%include file='files_source.html'/>
29 %endif
29 %endif
30 %else:
30 %else:
31 <h2><a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> ${_('No files at given path')}: "${c.f_path or "/"}" </h2>
31 <h2>
32 <a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a>
33 ${_('No files at given path')}: "${c.f_path or "/"}"
34 </h2>
32 %endif
35 %endif
33
36
34 </div>
37 </div>
@@ -27,9 +27,11 b''
27 <dt>${_('Size')}</dt>
27 <dt>${_('Size')}</dt>
28 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd>
28 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd>
29 <dt>${_('Options')}</dt>
29 <dt>${_('Options')}</dt>
30 <dd>${h.link_to(_('source'),
30 <dd>${h.link_to(_('show source'),
31 h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'),
31 h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
32 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
32 / ${h.link_to(_('download as raw'),
33 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
34 </dd>
33 </dl>
35 </dl>
34 <div id="body" class="codeblock">
36 <div id="body" class="codeblock">
35 <div class="code-header">
37 <div class="code-header">
@@ -4,9 +4,11 b''
4 <dt>${_('Size')}</dt>
4 <dt>${_('Size')}</dt>
5 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
5 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
6 <dt>${_('Options')}</dt>
6 <dt>${_('Options')}</dt>
7 <dd>${h.link_to(_('annotate'),
7 <dd>${h.link_to(_('show annotation'),
8 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'),
8 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
9 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
9 / ${h.link_to(_('download as raw'),
10 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
11 </dd>
10 <dt>${_('History')}</dt>
12 <dt>${_('History')}</dt>
11 <dd>
13 <dd>
12 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
14 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
General Comments 0
You need to be logged in to leave comments. Login now