diff --git a/catalog/templates/_item_card_metadata_album.html b/catalog/templates/_item_card_metadata_album.html index 539f84c8..1741b589 100644 --- a/catalog/templates/_item_card_metadata_album.html +++ b/catalog/templates/_item_card_metadata_album.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.artist role='' max=2 %} {% include '_people.html' with people=item.genre role='流派' max=5 %}
diff --git a/catalog/templates/_item_card_metadata_base.html b/catalog/templates/_item_card_metadata_base.html index 84060906..db5040f2 100644 --- a/catalog/templates/_item_card_metadata_base.html +++ b/catalog/templates/_item_card_metadata_base.html @@ -44,7 +44,7 @@ {% endblock full %} {% if show_tags %} -
+
{% for tag in item.tags %} {% if forloop.counter <= 5 %} diff --git a/catalog/templates/_item_card_metadata_edition.html b/catalog/templates/_item_card_metadata_edition.html index dddf6cd2..22d0f2f4 100644 --- a/catalog/templates/_item_card_metadata_edition.html +++ b/catalog/templates/_item_card_metadata_edition.html @@ -2,7 +2,9 @@ {% load humanize %} {% load i18n %} {% block brief %} - {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.author role='作者' max=2 %} {% include '_people.html' with people=item.translator role='译者' max=2 %} {% include '_people.html' with people=item.director role='导演' max=2 %} diff --git a/catalog/templates/_item_card_metadata_game.html b/catalog/templates/_item_card_metadata_game.html index c726f47a..d737b93c 100644 --- a/catalog/templates/_item_card_metadata_game.html +++ b/catalog/templates/_item_card_metadata_game.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% if item.other_title %} {% include '_people.html' with people=item.other_title role='又名' max=2 %} {% endif %} diff --git a/catalog/templates/_item_card_metadata_movie.html b/catalog/templates/_item_card_metadata_movie.html index 2e6c0601..170123ca 100644 --- a/catalog/templates/_item_card_metadata_movie.html +++ b/catalog/templates/_item_card_metadata_movie.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.director role='导演' max=2 %} {% include '_people.html' with people=item.actor role='主演' max=2 %}
diff --git a/catalog/templates/_item_card_metadata_performance.html b/catalog/templates/_item_card_metadata_performance.html index f0fa181b..1a2ff6ba 100644 --- a/catalog/templates/_item_card_metadata_performance.html +++ b/catalog/templates/_item_card_metadata_performance.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.genre role='类型' max=2 %} {% include '_people.html' with people=item.playwright role='编剧' max=2 %} {% include '_people.html' with people=item.composer role='作曲' max=2 %} diff --git a/catalog/templates/_item_card_metadata_performanceproduction.html b/catalog/templates/_item_card_metadata_performanceproduction.html index 72d290b9..67c794b6 100644 --- a/catalog/templates/_item_card_metadata_performanceproduction.html +++ b/catalog/templates/_item_card_metadata_performanceproduction.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.genre role='类型' max=2 %} {% include '_people.html' with people=item.language role='语言' max=5 %} {% include '_people.html' with people=item.troupe role='剧团' max=2 %} diff --git a/catalog/templates/_item_card_metadata_podcast.html b/catalog/templates/_item_card_metadata_podcast.html index 85dbbd2d..fdb7ba78 100644 --- a/catalog/templates/_item_card_metadata_podcast.html +++ b/catalog/templates/_item_card_metadata_podcast.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.hosts role='主播' max=5 %}
{% endblock brief %} diff --git a/catalog/templates/_item_card_metadata_tvseason.html b/catalog/templates/_item_card_metadata_tvseason.html index 2e6c0601..170123ca 100644 --- a/catalog/templates/_item_card_metadata_tvseason.html +++ b/catalog/templates/_item_card_metadata_tvseason.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.director role='导演' max=2 %} {% include '_people.html' with people=item.actor role='主演' max=2 %}
diff --git a/catalog/templates/_item_card_metadata_tvshow.html b/catalog/templates/_item_card_metadata_tvshow.html index 2e6c0601..170123ca 100644 --- a/catalog/templates/_item_card_metadata_tvshow.html +++ b/catalog/templates/_item_card_metadata_tvshow.html @@ -3,7 +3,9 @@ {% load i18n %} {% block brief %}
- {% if item.rating %}{{ item.rating | floatformat:1 }}分({{ item.rating_count }}人){% endif %} + {% if item.rating %} + {{ item.rating | floatformat:1 }}分({{ item.rating_count }}人) + {% endif %} {% include '_people.html' with people=item.director role='导演' max=2 %} {% include '_people.html' with people=item.actor role='主演' max=2 %}
diff --git a/catalog/templates/item_base.html b/catalog/templates/item_base.html index 1d51a029..725b63e5 100644 --- a/catalog/templates/item_base.html +++ b/catalog/templates/item_base.html @@ -279,7 +279,7 @@ {% endif %}
{% endif %} -
+
@@ -313,7 +313,7 @@ 评分人数不足
-
+
{% for tag in item.tags %} {{ tag }} @@ -364,7 +364,7 @@ {% endif %} {% block content %}{% endblock %} -
+
短评 {% if request.user.is_authenticated %} @@ -386,7 +386,7 @@

登录后可见

{% endif %}
-
+
{% trans '评论' %} {% comment %} diff --git a/common/static/scss/_footer.scss b/common/static/scss/_footer.scss index 1503dcf5..21ff4030 100644 --- a/common/static/scss/_footer.scss +++ b/common/static/scss/_footer.scss @@ -1,4 +1,4 @@ -&>footer { +body>footer { text-align: center; margin-bottom: 4px; width: 80%; diff --git a/common/templates/common_libs.html b/common/templates/common_libs.html index 6cc56535..76f8239a 100644 --- a/common/templates/common_libs.html +++ b/common/templates/common_libs.html @@ -43,6 +43,12 @@ style.innerHTML = s; document.head.appendChild(style); } + const solo = localStorage.getItem("solo_mode"); + if (solo) { + const style = document.createElement("style"); + style.innerHTML = ".solo-hidden {display: none;}"; + document.head.appendChild(style); + } })(); diff --git a/users/templates/users/preferences.html b/users/templates/users/preferences.html index e888b987..1457a564 100644 --- a/users/templates/users/preferences.html +++ b/users/templates/users/preferences.html @@ -124,17 +124,23 @@
{% trans '当前设备设置' %} +
专注模式 (实验功能)
+

+ + +

自定义样式代码 (实验功能)

- +