map updates view: add link to changeset

This commit is contained in:
se4598 2023-12-21 02:58:45 +01:00 committed by GitHub
parent 0646f57c60
commit b200001316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@
{% elif update.type == 'changeset' %}
{% url 'control.users.detail' user=update.user.pk as user_url %}
{% url 'control.users.detail' user=update.changeset.author.pk as author_url %}
{% blocktrans with changeset_id=update.changeset.pk user_name=update.user.username author_name=update.changeset.author.username %}Changeset #{{ changeset_id }} by <a href="{{ author_url }}">{{ author_name }}</a> applied by <a href="{{ user_url }}">{{ user_name }}</a>{% endblocktrans %}
{% blocktrans with changeset_id=update.changeset.pk user_name=update.user.username author_name=update.changeset.author.username %}Changeset <a href="{{ update.changeset.get_absolute_url }}">#{{ changeset_id }}</a> by <a href="{{ author_url }}">{{ author_name }}</a> applied by <a href="{{ user_url }}">{{ user_name }}</a>{% endblocktrans %}
{% else %}
{{ update.type }}
{% endif %}