diff --git a/catalog/templates/_item_comments.html b/catalog/templates/_item_comments.html index 763667d5..3c26df01 100644 --- a/catalog/templates/_item_comments.html +++ b/catalog/templates/_item_comments.html @@ -13,7 +13,7 @@ {% if item.episodes.all %} 全部 {% for ep in item.episodes.all %} - + 第{{ ep.episode_number }}集 @@ -24,6 +24,13 @@ {% endif %}
+ {% endif %} {% for comment in comments %} {% if forloop.counter <= 10 %} diff --git a/catalog/templates/_item_comments_by_episode.html b/catalog/templates/_item_comments_by_episode.html index 00f0e6b2..91e22f67 100644 --- a/catalog/templates/_item_comments_by_episode.html +++ b/catalog/templates/_item_comments_by_episode.html @@ -17,7 +17,7 @@ hx-target="#comments">全部 {% for ep in item.episodes.all %} - + 第{{ ep.episode_number }}集 @@ -41,6 +41,13 @@ + {% endif %} {% for comment in comments %} {% if forloop.counter <= 10 %} diff --git a/catalog/templates/_item_user_data.html b/catalog/templates/_item_user_data.html new file mode 100644 index 00000000..ab44fd36 --- /dev/null +++ b/catalog/templates/_item_user_data.html @@ -0,0 +1,155 @@ +{% load user_actions %} +{{ mark.comment.html|safe }}
+ {% else %} + + {% endif %} + + {% for comment in child_item_comments %} + + + + + + + {% liked_piece comment as liked %} + {% include 'like_stats.html' with liked=liked piece=comment %} + + + + + {% comment %} {% endcomment %} + ++ 评{{ comment.item.title }}: {{ comment.html|safe }} +
+ {% endfor %} ++ {{ c.title }} + {% if c.visibility > 0 %}{% endif %} +
+ {% empty %} + + {% endfor %} +