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
|
|
@ -73,7 +73,7 @@
|
|||
</div>
|
||||
|
||||
<div class="author">
|
||||
<div title="${c.file_last_commit.author}">
|
||||
<div title="${h.tooltip(c.file_last_commit.author)}">
|
||||
${self.gravatar_with_user(c.file_last_commit.author, 16)} - ${_('created')} ${h.age_component(c.file_last_commit.date)}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
<tr>
|
||||
<td colspan="4">
|
||||
<span class="private_repo_msg">
|
||||
<strong title="${_user.permission}">${_('private repository')}</strong>
|
||||
<strong title="${h.tooltip(_user.permission)}">${_('private repository')}</strong>
|
||||
</span>
|
||||
</td>
|
||||
<td class="private_repo_msg">
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<dl class="dl-horizontal settings">
|
||||
%for dt, dd, tt in elems:
|
||||
<dt >${dt}:</dt>
|
||||
<dd title="${tt}">${dd}</dd>
|
||||
<dd title="${h.tooltip(tt)}">${dd}</dd>
|
||||
%endfor
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<dl class="dl-horizontal settings">
|
||||
%for dt, dd, tt in elems:
|
||||
<dt>${dt}:</dt>
|
||||
<dd title="${tt}">${dd}</dd>
|
||||
<dd title="${h.tooltip(tt)}">${dd}</dd>
|
||||
%endfor
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
<dl class="dl-horizontal">
|
||||
%for dt, dd, title, show_items in elements:
|
||||
<dt>${dt}:</dt>
|
||||
<dd title="${title}">
|
||||
<dd title="${h.tooltip(title)}">
|
||||
%if callable(dd):
|
||||
## allow lazy evaluation of elements
|
||||
${dd()}
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
|
||||
<%def name="gravatar_with_user(contact, size=16, show_disabled=False)">
|
||||
<% email = h.email_or_none(contact) %>
|
||||
<div class="rc-user tooltip" title="${h.author_string(email)}">
|
||||
<div class="rc-user tooltip" title="${h.tooltip(h.author_string(email))}">
|
||||
${self.gravatar(email, size)}
|
||||
<span class="${'user user-disabled' if show_disabled else 'user'}"> ${h.link_to_user(contact)}</span>
|
||||
</div>
|
||||
|
|
@ -234,7 +234,7 @@
|
|||
## TODO: anderson: ideally it would have a function on the scm_instance "enable_pullrequest() and enable_fork()"
|
||||
%if c.rhodecode_db_repo.repo_type in ['git','hg']:
|
||||
<li class="${is_active('showpullrequest')}">
|
||||
<a class="menulink" href="${h.route_path('pullrequest_show_all', repo_name=c.repo_name)}" title="${_('Show Pull Requests for %s') % c.repo_name}">
|
||||
<a class="menulink" href="${h.route_path('pullrequest_show_all', repo_name=c.repo_name)}" title="${h.tooltip(_('Show Pull Requests for %s') % c.repo_name)}">
|
||||
%if c.repository_pull_requests:
|
||||
<span class="pr_notifications">${c.repository_pull_requests}</span>
|
||||
%endif
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
|
||||
<%def name="name(name, files_url)">
|
||||
<span class="tag booktag" title="${_('Bookmark %s') % (name,)}">
|
||||
<span class="tag booktag" title="${h.tooltip(_('Bookmark %s') % (name,))}">
|
||||
<a href="${files_url}">
|
||||
<i class="icon-bookmark"></i>
|
||||
${name}
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
</%def>
|
||||
|
||||
<%def name="author(author)">
|
||||
<span class="tooltip" title="${author}">${h.link_to_user(author)}</span>
|
||||
<span class="tooltip" title="${h.tooltip(author)}">${h.link_to_user(author)}</span>
|
||||
</%def>
|
||||
|
||||
<%def name="commit(message, commit_id, commit_idx)">
|
||||
<div>
|
||||
<pre><a title="${message}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
<pre><a title="${h.tooltip(message)}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
</div>
|
||||
</%def>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</%def>
|
||||
|
||||
<%def name="name(name, files_url)">
|
||||
<span class="tag branchtag" title="${_('Branch %s') % (name,)}">
|
||||
<span class="tag branchtag" title="${h.tooltip(_('Branch %s') % (name,))}">
|
||||
<a href="${files_url}"><i class="icon-code-fork"></i>${name}
|
||||
%if name in c.closed_branches:
|
||||
[closed]
|
||||
|
|
@ -23,11 +23,11 @@
|
|||
</%def>
|
||||
|
||||
<%def name="author(author)">
|
||||
<span class="tooltip" title="${author}">${h.link_to_user(author)}</span>
|
||||
<span class="tooltip" title="${h.tooltip(author)}">${h.link_to_user(author)}</span>
|
||||
</%def>
|
||||
|
||||
<%def name="commit(message, commit_id, commit_idx)">
|
||||
<div>
|
||||
<pre><a title="${message}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
<pre><a title="${h.tooltip(message)}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
</div>
|
||||
</%def>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
%if c.rhodecode_db_repo.fork:
|
||||
<span>
|
||||
<a id="compare_fork_button"
|
||||
title="${_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}"
|
||||
title="${h.tooltip(_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name))}"
|
||||
class="btn btn-small"
|
||||
href="${h.url('compare_url',
|
||||
repo_name=c.rhodecode_db_repo.fork.repo_name,
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
## branch
|
||||
%if commit.branch:
|
||||
<span class="tag branchtag" title="${_('Branch %s') % commit.branch}">
|
||||
<span class="tag branchtag" title="${h.tooltip(_('Branch %s') % commit.branch)}">
|
||||
<a href="${h.url('changelog_home',repo_name=c.repo_name,branch=commit.branch)}"><i class="icon-code-fork"></i>${h.shorter(commit.branch)}</a>
|
||||
</span>
|
||||
%endif
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
## bookmarks
|
||||
%if h.is_hg(c.rhodecode_repo):
|
||||
%for book in commit.bookmarks:
|
||||
<span class="tag booktag" title="${_('Bookmark %s') % book}">
|
||||
<span class="tag booktag" 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
|
||||
|
|
@ -116,7 +116,7 @@
|
|||
|
||||
## tags
|
||||
%for tag in commit.tags:
|
||||
<span class="tag tagtag" title="${_('Tag %s') % tag}">
|
||||
<span class="tag tagtag" 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>${h.shorter(tag)}</a>
|
||||
</span>
|
||||
%endfor
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</td>
|
||||
<td class="td-message">
|
||||
<div class="log-container">
|
||||
<div class="message_history" title="${cs.message}">
|
||||
<div class="message_history" title="${h.tooltip(cs.message)}">
|
||||
<a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">
|
||||
${h.shorter(cs.message, 75)}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -109,20 +109,20 @@
|
|||
|
||||
%if h.is_hg(c.rhodecode_repo):
|
||||
%for book in c.commit.bookmarks:
|
||||
<span class="booktag tag" title="${_('Bookmark %s') % book}">
|
||||
<span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision=c.commit.raw_id)}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
|
||||
</span>
|
||||
%endfor
|
||||
%endif
|
||||
|
||||
%for tag in c.commit.tags:
|
||||
<span class="tagtag tag" title="${_('Tag %s') % tag}">
|
||||
<span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision=c.commit.raw_id)}"><i class="icon-tag"></i>${tag}</a>
|
||||
</span>
|
||||
%endfor
|
||||
|
||||
%if c.commit.branch:
|
||||
<span class="branchtag tag" title="${_('Branch %s') % c.commit.branch}">
|
||||
<span class="branchtag tag" title="${h.tooltip(_('Branch %s') % c.commit.branch)}">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision=c.commit.raw_id)}"><i class="icon-code-fork"></i>${h.shorter(c.commit.branch)}</a>
|
||||
</span>
|
||||
%endif
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -92,22 +92,22 @@
|
|||
|
||||
<%def name="rss(name)">
|
||||
%if c.rhodecode_user.username != h.DEFAULT_USER:
|
||||
<a title="${_('Subscribe to %s rss feed')% name}" href="${h.url('rss_feed_home',repo_name=name,auth_token=c.rhodecode_user.feed_token)}"><i class="icon-rss-sign"></i></a>
|
||||
<a title="${h.tooltip(_('Subscribe to %s rss feed')% name)}" href="${h.url('rss_feed_home',repo_name=name,auth_token=c.rhodecode_user.feed_token)}"><i class="icon-rss-sign"></i></a>
|
||||
%else:
|
||||
<a title="${_('Subscribe to %s rss feed')% name}" href="${h.url('rss_feed_home',repo_name=name)}"><i class="icon-rss-sign"></i></a>
|
||||
<a title="${h.tooltip(_('Subscribe to %s rss feed')% name)}" href="${h.url('rss_feed_home',repo_name=name)}"><i class="icon-rss-sign"></i></a>
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="atom(name)">
|
||||
%if c.rhodecode_user.username != h.DEFAULT_USER:
|
||||
<a title="${_('Subscribe to %s atom feed')% name}" href="${h.url('atom_feed_home',repo_name=name,auth_token=c.rhodecode_user.feed_token)}"><i class="icon-rss-sign"></i></a>
|
||||
<a title="${h.tooltip(_('Subscribe to %s atom feed')% name)}" href="${h.url('atom_feed_home',repo_name=name,auth_token=c.rhodecode_user.feed_token)}"><i class="icon-rss-sign"></i></a>
|
||||
%else:
|
||||
<a title="${_('Subscribe to %s atom feed')% name}" href="${h.url('atom_feed_home',repo_name=name)}"><i class="icon-rss-sign"></i></a>
|
||||
<a title="${h.tooltip(_('Subscribe to %s atom feed')% name)}" href="${h.url('atom_feed_home',repo_name=name)}"><i class="icon-rss-sign"></i></a>
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="user_gravatar(email, size=16)">
|
||||
<div class="rc-user tooltip" title="${h.author_string(email)}">
|
||||
<div class="rc-user tooltip" title="${h.tooltip(h.author_string(email))}">
|
||||
${base.gravatar(email, 16)}
|
||||
</div>
|
||||
</%def>
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
%elif repo_state == 'repo_state_created':
|
||||
<div class="tag tag1">${_('Created')}</div>
|
||||
%else:
|
||||
<div class="tag alert2" title="${repo_state}">invalid</div>
|
||||
<div class="tag alert2" title="${h.tooltip(repo_state)}">invalid</div>
|
||||
%endif
|
||||
</div>
|
||||
</%def>
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@
|
|||
|
||||
%if h.is_hg(c.rhodecode_repo):
|
||||
%for book in commit.bookmarks:
|
||||
<span class="booktag tag" title="${_('Bookmark %s') % book}">
|
||||
<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="${_('Tag %s') % tag}">
|
||||
<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="${_('Branch %s') % 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
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<ul class="sidebar-right-content">
|
||||
% for email, user in sorted(c.authors, key=lambda e: c.file_last_commit.author_email!=e[0]):
|
||||
<li class="file_author">
|
||||
<div class="rc-user tooltip" title="${h.author_string(email)}">
|
||||
<div class="rc-user tooltip" title="${h.tooltip(h.author_string(email))}">
|
||||
${base.gravatar(email, 16)}
|
||||
<span class="user">${h.link_to_user(user)}</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -58,14 +58,14 @@
|
|||
</td>
|
||||
<td class="td-hash" data-attr-name="commit_id">
|
||||
% if c.full_load:
|
||||
<div class="tooltip" title="${node.last_commit.message}">
|
||||
<div class="tooltip" title="${h.tooltip(node.last_commit.message)}">
|
||||
<pre data-commit-id="${node.last_commit.raw_id}">r${node.last_commit.revision}:${node.last_commit.short_id}</pre>
|
||||
</div>
|
||||
% endif
|
||||
</td>
|
||||
<td class="td-user" data-attr-name="author">
|
||||
% if c.full_load:
|
||||
<span data-author="${node.last_commit.author}" title="${node.last_commit.author}">${h.gravatar_with_user(node.last_commit.author)|n}</span>
|
||||
<span data-author="${node.last_commit.author}" title="${h.tooltip(node.last_commit.author)}">${h.gravatar_with_user(node.last_commit.author)|n}</span>
|
||||
% endif
|
||||
</td>
|
||||
%else:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
${h.age_component(f.created_on, time_is_local=True)}
|
||||
</td>
|
||||
<td class="td-compare">
|
||||
<a title="${_('Compare fork with %s' % c.repo_name)}"
|
||||
<a title="${h.tooltip(_('Compare fork with %s' % c.repo_name))}"
|
||||
href="${h.url('compare_url',repo_name=c.repo_name, source_ref_type=c.rhodecode_db_repo.landing_rev[0],source_ref=c.rhodecode_db_repo.landing_rev[1],target_repo=f.repo_name,target_ref_type=c.rhodecode_db_repo.landing_rev[0],target_ref=c.rhodecode_db_repo.landing_rev[1], merge=1)}"
|
||||
class="btn-link"><i class="icon-loop"></i> ${_('Compare fork')}</a>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@
|
|||
<i class="icon-remove-sign"></i>
|
||||
</div>
|
||||
<div class="reviewer_member_mandatory">
|
||||
<i class="icon-lock" title="Mandatory reviewer"></i>
|
||||
<i class="icon-lock" title="${h.tooltip(_('Mandatory reviewer'))}"></i>
|
||||
</div>
|
||||
% else:
|
||||
%if c.allowed_to_update:
|
||||
|
|
@ -500,7 +500,7 @@
|
|||
<tr id="row-${commit.raw_id}" commit_id="${commit.raw_id}" class="compare_select">
|
||||
<td>
|
||||
<div class="commit-change-indicator color-${c_type}-border">
|
||||
<div class="commit-change-content color-${c_type} tooltip" title="${cc_title}">
|
||||
<div class="commit-change-content color-${c_type} tooltip" title="${h.tooltip(cc_title)}">
|
||||
${c_type.upper()}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
|
||||
<%def name="head_extra()">
|
||||
<link href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name,auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" />
|
||||
<link href="${h.url('rss_feed_home',repo_name=c.rhodecode_db_repo.repo_name,auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" />
|
||||
<link href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name,auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${h.tooltip(_('%s ATOM feed') % c.repo_name)}" type="application/atom+xml" />
|
||||
<link href="${h.url('rss_feed_home',repo_name=c.rhodecode_db_repo.repo_name,auth_token=c.rhodecode_user.feed_token)}" rel="alternate" title="${h.tooltip(_('%s RSS feed') % c.repo_name)}" type="application/rss+xml" />
|
||||
</%def>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
%if c.readme_data:
|
||||
<div id="readme" class="anchor">
|
||||
<div class="box" >
|
||||
<div class="title" title="${_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1])}">
|
||||
<div class="title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1]))}">
|
||||
<h3 class="breadcrumbs">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
|
||||
</h3>
|
||||
|
|
|
|||
|
|
@ -59,21 +59,21 @@
|
|||
<div class="autoexpand">
|
||||
%if h.is_hg(c.rhodecode_repo):
|
||||
%for book in cs.bookmarks:
|
||||
<span class="booktag tag" title="${_('Bookmark %s') % book}">
|
||||
<span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
|
||||
</span>
|
||||
%endfor
|
||||
%endif
|
||||
## tags
|
||||
%for tag in cs.tags:
|
||||
<span class="tagtag tag" title="${_('Tag %s') % tag}">
|
||||
<span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}">
|
||||
<a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-tag"></i>${h.shorter(tag)}</a>
|
||||
</span>
|
||||
%endfor
|
||||
|
||||
## branch
|
||||
%if cs.branch:
|
||||
<span class="branchtag tag" title="${_('Branch %s') % cs.branch}">
|
||||
<span class="branchtag tag" title="${h.tooltip(_('Branch %s') % cs.branch)}">
|
||||
<a href="${h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch)}"><i class="icon-code-fork"></i>${h.shorter(cs.branch)}</a>
|
||||
</span>
|
||||
%endif
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
</%def>
|
||||
|
||||
<%def name="name(name, files_url)">
|
||||
<span class="tagtag tag" title="${_('Tag %s') % (name,)}">
|
||||
<span class="tagtag tag" title="${h.tooltip(_('Tag %s') % (name,))}">
|
||||
<a href="${files_url}"><i class="icon-tag"></i>${name}</a>
|
||||
</span>
|
||||
</%def>
|
||||
|
|
@ -19,11 +19,11 @@
|
|||
</%def>
|
||||
|
||||
<%def name="author(author)">
|
||||
<span class="tooltip" title="${author}">${h.link_to_user(author)}</span>
|
||||
<span class="tooltip" title="${h.tooltip(author)}">${h.link_to_user(author)}</span>
|
||||
</%def>
|
||||
|
||||
<%def name="commit(message, commit_id, commit_idx)">
|
||||
<div>
|
||||
<pre><a title="${message}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
<pre><a title="${h.tooltip(message)}" href="${h.url('files_home',repo_name=c.repo_name,revision=commit_id)}">r${commit_idx}:${h.short_id(commit_id)}</a></pre>
|
||||
</div>
|
||||
</%def>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue