diff --git a/catalog/templates/album.html b/catalog/templates/album.html index 3760120e..b3289fc3 100644 --- a/catalog/templates/album.html +++ b/catalog/templates/album.html @@ -102,7 +102,9 @@ {% endif %}
- {% trans '编辑这张专辑' %} + {% if user.is_authenticated %} + {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %} diff --git a/catalog/templates/edition.html b/catalog/templates/edition.html index 2ef25ef2..4cad2aa9 100644 --- a/catalog/templates/edition.html +++ b/catalog/templates/edition.html @@ -67,7 +67,9 @@ {% endif %}
- {% trans '编辑这本书' %} + {% if user.is_authenticated %} + {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %} diff --git a/catalog/templates/game.html b/catalog/templates/game.html index ddc50206..ca510fd8 100644 --- a/catalog/templates/game.html +++ b/catalog/templates/game.html @@ -96,7 +96,9 @@ {% endif %}
- {% trans '编辑这个游戏' %} + {% if user.is_authenticated %} + {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %} diff --git a/catalog/templates/item_base.html b/catalog/templates/item_base.html index caade775..296df118 100644 --- a/catalog/templates/item_base.html +++ b/catalog/templates/item_base.html @@ -184,6 +184,7 @@
{% block sidebar_review %} + {% if user.is_authenticated %}
{% if mark.shelf_type %}
@@ -261,6 +262,13 @@ {% endif %}
+ {% else %} +
+
+ {% trans '登录后可管理标记和评论' %} +
+
+ {% endif %} {% endblock %} {% block sidebar %} diff --git a/catalog/templates/movie.html b/catalog/templates/movie.html index 0efa1e5d..796757fb 100644 --- a/catalog/templates/movie.html +++ b/catalog/templates/movie.html @@ -160,7 +160,9 @@ {% endif %}
- {% trans '编辑这部电影' %} + {% if user.is_authenticated %} + {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %} diff --git a/catalog/templates/tvseason.html b/catalog/templates/tvseason.html index 38534712..85fbdbaf 100644 --- a/catalog/templates/tvseason.html +++ b/catalog/templates/tvseason.html @@ -174,7 +174,9 @@ {% endif %}
+ {% if user.is_authenticated %} {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %} diff --git a/catalog/templates/tvshow.html b/catalog/templates/tvshow.html index 8d7d9375..3ce7dcd3 100644 --- a/catalog/templates/tvshow.html +++ b/catalog/templates/tvshow.html @@ -172,7 +172,9 @@ {% endif %}
- {% trans '编辑这部剧集' %} + {% if user.is_authenticated %} + {% trans '编辑' %}{{ item.demonstrative }} + {% endif %} {% if user.is_staff %} / {% trans '删除' %} {% endif %}