link to user profile in changeset page
This commit is contained in:
parent
23091755d3
commit
6116bf9004
1 changed files with 2 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue