Commit 798e5647 authored by Michal Čihař's avatar Michal Čihař

Remove no longer needed gitdate tag

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 73c3e7dd
{% load i18n %}{% load translations %} {% load i18n %}
<span class="git-commit ui-corner-all tooltip">{{ commit.hexsha|slice:":8" }}<span class="tooltip-content"> <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.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 %} {% blocktrans with commit.author.name as author and commit.authored_date|date:"DATETIME_FORMAT" as date %}Authored by {{ author }} on {{ date }}{% endblocktrans %}
</span></span> </span></span>
...@@ -282,17 +282,6 @@ def show_checks(checks, user): ...@@ -282,17 +282,6 @@ def show_checks(checks, user):
} }
@register.filter
def gitdate(value):
'''
Formats timestamp as returned byt GitPython.
'''
return date_format(
datetime.fromtimestamp(value),
'DATETIME_FORMAT'
)
def naturaltime_past(value, now): def naturaltime_past(value, now):
""" """
Handling of past dates for naturaltime. Handling of past dates for naturaltime.
......
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