From 7cb08d964a783e6bd7bc4d13d8e1d5106fd08d37 Mon Sep 17 00:00:00 2001 From: Te Llamas Date: Thu, 17 Nov 2022 15:27:15 +0000 Subject: [PATCH] show last edit if user prefers --- books/templates/books/detail.html | 2 +- games/templates/games/detail.html | 2 +- movies/templates/movies/detail.html | 2 +- music/templates/music/album_detail.html | 2 +- music/templates/music/song_detail.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/books/templates/books/detail.html b/books/templates/books/detail.html index 9198fab3..d9ebf2bd 100644 --- a/books/templates/books/detail.html +++ b/books/templates/books/detail.html @@ -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 %}
{% trans '最近编辑者:' %}{{ book.last_editor | default:"" }}
{% endif %} diff --git a/games/templates/games/detail.html b/games/templates/games/detail.html index 5513e992..60ed0f85 100644 --- a/games/templates/games/detail.html +++ b/games/templates/games/detail.html @@ -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 %}
{% trans '最近编辑者:' %}{{ game.last_editor | default:"" }}
{% endif %} diff --git a/movies/templates/movies/detail.html b/movies/templates/movies/detail.html index 94546277..6496ddcf 100644 --- a/movies/templates/movies/detail.html +++ b/movies/templates/movies/detail.html @@ -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 %}
{% trans '最近编辑者:' %}{{ movie.last_editor | default:"" }}
{% endif %} diff --git a/music/templates/music/album_detail.html b/music/templates/music/album_detail.html index 22ffe1b2..5a83672a 100644 --- a/music/templates/music/album_detail.html +++ b/music/templates/music/album_detail.html @@ -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 %}
{% trans '最近编辑者:' %}{{ album.last_editor | default:"" }}
{% endif %} diff --git a/music/templates/music/song_detail.html b/music/templates/music/song_detail.html index 9dd5a397..e66cce68 100644 --- a/music/templates/music/song_detail.html +++ b/music/templates/music/song_detail.html @@ -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 %}
{% trans '最近编辑者:' %}{{ song.last_editor | default:"" }}
{% endif %}