Commit 446b3911 authored by Michal Čihař's avatar Michal Čihař

Simplify tooltips code

parent 89fec1cd
{% load i18n %}{% load translations %}
<span class="git-commit ui-corner-all">{{ commit.hexsha|slice:":8" }}<span class="git-details">
<span class="git-commit ui-corner-all tooltip">{{ commit.hexsha|slice:":8" }}<span class="tooltip-content">
{% blocktrans with commit.hexsha as hash %}Commit {{ hash }}{% endblocktrans %}<br />
{% blocktrans with commit.author.name as author and commit.authored_date|gitdate as date %}Authored by {{ author }} on {{ date }}{% endblocktrans %}
</span></span>
......@@ -388,12 +388,9 @@ $(function () {
if (content.length > 0) {
element = content;
}
if (element.is('span.git-commit')) {
element = $(this).find('.git-details');
}
return element.html();
},
items: ".tooltip, span.git-commit"
items: ".tooltip"
});
if (update_lock) {
window.setInterval(function () {
......
......@@ -271,7 +271,7 @@ img.engage-icon {
width: 1em;
height: 1em;
}
.git-details, .tooltip-content {
.tooltip-content {
display: none;
}
.ui-tooltip {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment