tooltip: use consistent h.tooltip usage to set tooltips.
This commit is contained in:
parent
f123e5af43
commit
372c7c267c
23 changed files with 51 additions and 50 deletions
|
|
@ -114,7 +114,7 @@ collapse_all = len(diffset.files) > collapse_when_files_over
|
|||
<div class="diffset-heading ${diffset.limited_diff and 'diffset-heading-warning' or ''}">
|
||||
%if commit:
|
||||
<div class="pull-right">
|
||||
<a class="btn tooltip" title="${_('Browse Files at revision {}').format(commit.raw_id)}" href="${h.url('files_home',repo_name=diffset.repo_name, revision=commit.raw_id, f_path='')}">
|
||||
<a class="btn tooltip" title="${h.tooltip(_('Browse Files at revision {}').format(commit.raw_id))}" href="${h.url('files_home',repo_name=diffset.repo_name, revision=commit.raw_id, f_path='')}">
|
||||
${_('Browse Files')}
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -640,13 +640,13 @@ from rhodecode.lib.diffs import NEW_FILENODE, DEL_FILENODE, \
|
|||
|
||||
<a
|
||||
class="btn ${c.diffmode == 'sideside' and 'btn-primary'} tooltip"
|
||||
title="${_('View side by side')}"
|
||||
title="${h.tooltip(_('View side by side'))}"
|
||||
href="${h.url_replace(diffmode='sideside')}">
|
||||
<span>${_('Side by Side')}</span>
|
||||
</a>
|
||||
<a
|
||||
class="btn ${c.diffmode == 'unified' and 'btn-primary'} tooltip"
|
||||
title="${_('View unified')}" href="${h.url_replace(diffmode='unified')}">
|
||||
title="${h.tooltip(_('View unified'))}" href="${h.url_replace(diffmode='unified')}">
|
||||
<span>${_('Unified')}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
from rhodecode.lib.codeblocks import render_tokenstream
|
||||
# avoid module lookup for performance
|
||||
html_escape = h.html_escape
|
||||
tooltip = h.tooltip
|
||||
%>
|
||||
<tr class="cb-line cb-line-fresh ${'cb-annotate' if show_annotation else ''}"
|
||||
%if annotation:
|
||||
|
|
@ -15,13 +16,13 @@
|
|||
% if annotation:
|
||||
% if show_annotation:
|
||||
<td class="cb-annotate-info tooltip"
|
||||
title="Author: ${annotation.author | entity}<br>Date: ${annotation.date}<br>Message: ${annotation.message | entity}"
|
||||
title="Author: ${tooltip(annotation.author) | entity}<br>Date: ${annotation.date}<br>Message: ${annotation.message | entity}"
|
||||
>
|
||||
${h.gravatar_with_user(annotation.author, 16) | n}
|
||||
<div class="cb-annotate-message truncate-wrap">${h.chop_at_smart(annotation.message, '\n', suffix_if_chopped='...')}</div>
|
||||
</td>
|
||||
<td class="cb-annotate-message-spacer">
|
||||
<a class="tooltip" href="#show-previous-annotation" onclick="return annotationController.previousAnnotation('${annotation.raw_id}', '${c.f_path}')" title="${_('view annotation from before this change')}">
|
||||
<a class="tooltip" href="#show-previous-annotation" onclick="return annotationController.previousAnnotation('${annotation.raw_id}', '${c.f_path}')" title="${tooltip(_('view annotation from before this change'))}">
|
||||
<i class="icon-left"></i>
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue