Commit a8ad9e90 authored by Michal Čihař's avatar Michal Čihař

Fix git commit info rendering

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 40ad2d86
{% load i18n %}{% load translations %}
<span class="git-commit ui-corner-all tooltip">{{ commit.hexsha|slice:":8" }}<span class="tooltip-content">
<code class="git-commit" data-toggle="tooltip" data-placement="bottom" data-title="
{% 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>
">{{ commit.hexsha|slice:":8" }}</code>
......@@ -12,4 +12,9 @@ $(function () {
}
);
})
$(document).tooltip({
selector: '.git-commit',
html: true
});
});
......@@ -47,3 +47,6 @@ footer a {
display: inline-block;
vertical-align: bottom;
}
.tooltip-inner {
max-width: 600px;
}
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