# HG changeset patch # User Marcin Kuzminski # Date 1276439239 -7200 # Node ID ed7abf925696d8053665a4a084e166ec4cbc35a8 # Parent 7ec4463b6e532fb5a312eaee2463f251d71a7b14 #4: changes proposed by feedback to annotation diff -r 7ec4463b6e53 -r ed7abf925696 pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py Sun Jun 13 15:56:47 2010 +0200 +++ b/pylons_app/lib/helpers.py Sun Jun 13 16:27:19 2010 +0200 @@ -84,10 +84,9 @@ return "color: rgb(%s) ! important;" % (','.join(col)) def url_func(changeset): - return '%s\n' % (link_to(changeset.raw_id, + return '%s\n' % (link_to('r%s:%s' % (changeset.revision, changeset.raw_id), url('changeset_home', repo_name='test', revision=changeset.raw_id), - title=_('author') + ':%s rev:%s %s' % (changeset.author, changeset.revision, - changeset.message,), + title=_('author') + ':%s - %s' % (changeset.author, changeset.message,), style=get_color_string(changeset.raw_id))) return literal(annotate_highlight(filenode, url_func, **kwargs)) diff -r 7ec4463b6e53 -r ed7abf925696 pylons_app/templates/files/files.html --- a/pylons_app/templates/files/files.html Sun Jun 13 15:56:47 2010 +0200 +++ b/pylons_app/templates/files/files.html Sun Jun 13 16:27:19 2010 +0200 @@ -28,7 +28,10 @@ <%include file='files_source.html'/> %endif %else: -

${_('Go back')} ${_('No files at given path')}: "${c.f_path or "/"}"

+

+ ${_('Go back')} + ${_('No files at given path')}: "${c.f_path or "/"}" +

%endif diff -r 7ec4463b6e53 -r ed7abf925696 pylons_app/templates/files/files_annotate.html --- a/pylons_app/templates/files/files_annotate.html Sun Jun 13 15:56:47 2010 +0200 +++ b/pylons_app/templates/files/files_annotate.html Sun Jun 13 16:27:19 2010 +0200 @@ -27,9 +27,11 @@
${_('Size')}
${h.format_byte_size(c.file.size,binary=True)}
${_('Options')}
-
${h.link_to(_('source'), - h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'), - h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
+
${h.link_to(_('show source'), + h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + / ${h.link_to(_('download as raw'), + h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} +
diff -r 7ec4463b6e53 -r ed7abf925696 pylons_app/templates/files/files_source.html --- a/pylons_app/templates/files/files_source.html Sun Jun 13 15:56:47 2010 +0200 +++ b/pylons_app/templates/files/files_source.html Sun Jun 13 16:27:19 2010 +0200 @@ -4,9 +4,11 @@
${_('Size')}
${h.format_byte_size(c.files_list.size,binary=True)}
${_('Options')}
-
${h.link_to(_('annotate'), - h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'), - h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}
+
${h.link_to(_('show annotation'), + h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + / ${h.link_to(_('download as raw'), + h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} +
${_('History')}
${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}