show last edit if user prefers
This commit is contained in:
parent
f5b33dc112
commit
7cb08d964a
5 changed files with 5 additions and 5 deletions
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue