diff --git a/rhodecode/templates/admin/gists/show.mako b/rhodecode/templates/admin/gists/show.mako --- a/rhodecode/templates/admin/gists/show.mako +++ b/rhodecode/templates/admin/gists/show.mako @@ -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> diff --git a/rhodecode/templates/admin/repos/repo_edit_permissions.mako b/rhodecode/templates/admin/repos/repo_edit_permissions.mako --- a/rhodecode/templates/admin/repos/repo_edit_permissions.mako +++ b/rhodecode/templates/admin/repos/repo_edit_permissions.mako @@ -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"> diff --git a/rhodecode/templates/admin/settings/settings_email.mako b/rhodecode/templates/admin/settings/settings_email.mako --- a/rhodecode/templates/admin/settings/settings_email.mako +++ b/rhodecode/templates/admin/settings/settings_email.mako @@ -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> diff --git a/rhodecode/templates/admin/settings/settings_sessions.mako b/rhodecode/templates/admin/settings/settings_sessions.mako --- a/rhodecode/templates/admin/settings/settings_sessions.mako +++ b/rhodecode/templates/admin/settings/settings_sessions.mako @@ -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> diff --git a/rhodecode/templates/base/base.mako b/rhodecode/templates/base/base.mako --- a/rhodecode/templates/base/base.mako +++ b/rhodecode/templates/base/base.mako @@ -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 diff --git a/rhodecode/templates/bookmarks/bookmarks_data.mako b/rhodecode/templates/bookmarks/bookmarks_data.mako --- a/rhodecode/templates/bookmarks/bookmarks_data.mako +++ b/rhodecode/templates/bookmarks/bookmarks_data.mako @@ -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> diff --git a/rhodecode/templates/branches/branches_data.mako b/rhodecode/templates/branches/branches_data.mako --- a/rhodecode/templates/branches/branches_data.mako +++ b/rhodecode/templates/branches/branches_data.mako @@ -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> diff --git a/rhodecode/templates/changelog/changelog.mako b/rhodecode/templates/changelog/changelog.mako --- a/rhodecode/templates/changelog/changelog.mako +++ b/rhodecode/templates/changelog/changelog.mako @@ -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, diff --git a/rhodecode/templates/changelog/changelog_elements.mako b/rhodecode/templates/changelog/changelog_elements.mako --- a/rhodecode/templates/changelog/changelog_elements.mako +++ b/rhodecode/templates/changelog/changelog_elements.mako @@ -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 diff --git a/rhodecode/templates/changelog/changelog_file_history.mako b/rhodecode/templates/changelog/changelog_file_history.mako --- a/rhodecode/templates/changelog/changelog_file_history.mako +++ b/rhodecode/templates/changelog/changelog_file_history.mako @@ -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> diff --git a/rhodecode/templates/changeset/changeset.mako b/rhodecode/templates/changeset/changeset.mako --- a/rhodecode/templates/changeset/changeset.mako +++ b/rhodecode/templates/changeset/changeset.mako @@ -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 diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -114,7 +114,7 @@ collapse_all = len(diffset.files) > coll <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_FILE <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> diff --git a/rhodecode/templates/codeblocks/source.mako b/rhodecode/templates/codeblocks/source.mako --- a/rhodecode/templates/codeblocks/source.mako +++ b/rhodecode/templates/codeblocks/source.mako @@ -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> diff --git a/rhodecode/templates/data_table/_dt_elements.mako b/rhodecode/templates/data_table/_dt_elements.mako --- a/rhodecode/templates/data_table/_dt_elements.mako +++ b/rhodecode/templates/data_table/_dt_elements.mako @@ -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> diff --git a/rhodecode/templates/files/base.mako b/rhodecode/templates/files/base.mako --- a/rhodecode/templates/files/base.mako +++ b/rhodecode/templates/files/base.mako @@ -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 diff --git a/rhodecode/templates/files/file_authors_box.mako b/rhodecode/templates/files/file_authors_box.mako --- a/rhodecode/templates/files/file_authors_box.mako +++ b/rhodecode/templates/files/file_authors_box.mako @@ -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> diff --git a/rhodecode/templates/files/files_browser_tree.mako b/rhodecode/templates/files/files_browser_tree.mako --- a/rhodecode/templates/files/files_browser_tree.mako +++ b/rhodecode/templates/files/files_browser_tree.mako @@ -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: diff --git a/rhodecode/templates/forks/forks_data.mako b/rhodecode/templates/forks/forks_data.mako --- a/rhodecode/templates/forks/forks_data.mako +++ b/rhodecode/templates/forks/forks_data.mako @@ -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> diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -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> diff --git a/rhodecode/templates/summary/base.mako b/rhodecode/templates/summary/base.mako --- a/rhodecode/templates/summary/base.mako +++ b/rhodecode/templates/summary/base.mako @@ -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> diff --git a/rhodecode/templates/summary/summary.mako b/rhodecode/templates/summary/summary.mako --- a/rhodecode/templates/summary/summary.mako +++ b/rhodecode/templates/summary/summary.mako @@ -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> diff --git a/rhodecode/templates/summary/summary_commits.mako b/rhodecode/templates/summary/summary_commits.mako --- a/rhodecode/templates/summary/summary_commits.mako +++ b/rhodecode/templates/summary/summary_commits.mako @@ -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 diff --git a/rhodecode/templates/tags/tags_data.mako b/rhodecode/templates/tags/tags_data.mako --- a/rhodecode/templates/tags/tags_data.mako +++ b/rhodecode/templates/tags/tags_data.mako @@ -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>