show last edit if user prefers

This commit is contained in:
Te Llamas 2022-11-17 15:27:15 +00:00
parent f5b33dc112
commit 7cb08d964a
5 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@
{% endif %}
{% if book.last_editor and user.preference.show_last_edit or user.is_staff %}
{% if book.last_editor and book.last_editor.preference.show_last_edit or user.is_staff %}
<div>{% trans '最近编辑者:' %}<a href="{% url 'users:home' book.last_editor.mastodon_username %}">{{ book.last_editor | default:"" }}</a></div>
{% endif %}

View file

@ -133,7 +133,7 @@
{% if game.last_editor and user.is_staff %}
{% if game.last_editor and game.last_editor.preference.show_last_edit or user.is_staff %}
<div>{% trans '最近编辑者:' %}<a href="{% url 'users:home' game.last_editor.mastodon_username %}">{{ game.last_editor | default:"" }}</a></div>
{% endif %}

View file

@ -195,7 +195,7 @@
{% endif %}
{% if movie.last_editor and user.is_staff %}
{% if movie.last_editor and movie.last_editor.preference.show_last_edit or user.is_staff %}
<div>{% trans '最近编辑者:' %}<a href="{% url 'users:home' movie.last_editor.mastodon_username %}">{{ movie.last_editor | default:"" }}</a></div>
{% endif %}

View file

@ -125,7 +125,7 @@
{% endif %}
{% if album.last_editor and user.is_staff %}
{% if album.last_editor and album.last_editor.preference.show_last_edit or user.is_staff %}
<div>{% trans '最近编辑者:' %}<a href="{% url 'users:home' album.last_editor.mastodon_username %}">{{ album.last_editor | default:"" }}</a></div>
{% endif %}

View file

@ -113,7 +113,7 @@
{% endif %}
{% if song.last_editor and user.is_staff %}
{% if song.last_editor and song.last_editor.preference.show_last_edit or user.is_staff %}
<div>{% trans '最近编辑者:' %}<a href="{% url 'users:home' song.last_editor.mastodon_username %}">{{ song.last_editor | default:"" }}</a></div>
{% endif %}