link to user profile in changeset page

This commit is contained in:
Laura Klünder 2017-06-30 20:54:24 +02:00
parent 23091755d3
commit 6116bf9004

View file

@ -16,7 +16,8 @@
<p class="text-muted"> <p class="text-muted">
{% with datetime=changeset.created|date:"DATETIME_FORMAT" author=changeset.author %} {% with datetime=changeset.created|date:"DATETIME_FORMAT" author=changeset.author %}
{% if author %} {% if author %}
{% blocktrans %}created at {{ datetime }} by {{ author }}{% endblocktrans %} {% url 'editor.users.detail' pk=changeset.author.pk as author_url %}
{% blocktrans %}created at {{ datetime }} by <a href="{{ author_url }}">{{ author }}</a>{% endblocktrans %}
{% else %} {% else %}
{% blocktrans %}created at {{ datetime }}{% endblocktrans %} {% blocktrans %}created at {{ datetime }}{% endblocktrans %}
{% endif %} {% endif %}