##// END OF EJS Templates
tooltip: use consistent h.tooltip usage to set tooltips.
tooltip: use consistent h.tooltip usage to set tooltips.

File last commit:

r1843:ae62b3c2 default
r1843:ae62b3c2 default
Show More
base.mako
28 lines | 1.0 KiB | application/x-mako | MakoHtmlLexer
<%def name="refs(commit)">
%if commit.merge:
<span class="mergetag tag">
<i class="icon-merge">${_('merge')}</i>
</span>
%endif
%if h.is_hg(c.rhodecode_repo):
%for book in commit.bookmarks:
<span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}">
<a href="${h.url('files_home',repo_name=c.repo_name,revision=commit.raw_id)}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
</span>
%endfor
%endif
%for tag in commit.tags:
<span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}">
<a href="${h.url('files_home',repo_name=c.repo_name,revision=commit.raw_id)}"><i class="icon-tag"></i>${tag}</a>
</span>
%endfor
%if commit.branch:
<span class="branchtag tag" title="${h.tooltip(_('Branch %s') % commit.branch)}">
<a href="${h.url('files_home',repo_name=c.repo_name,revision=commit.raw_id)}"><i class="icon-code-fork"></i>${h.shorter(commit.branch)}</a>
</span>
%endif
</%def>