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 %}