diff --git a/movies/templates/movies/detail.html b/movies/templates/movies/detail.html index 790b629a..e73d7994 100644 --- a/movies/templates/movies/detail.html +++ b/movies/templates/movies/detail.html @@ -97,26 +97,28 @@ {% endfor %} {% endif %}
{% if movie.actor %}{% trans '主演:' %} - {% for actor in movie.actor %} - 5 %}style="display: none;" {% endif %}>{{ actor }} - {% if forloop.counter <= 5 %} + {% for actor in movie.actor %} + 5 %}style="display: none;"{% endif %}> + {{ actor }} {% if not forloop.last %} / {% endif %} + + {% if forloop.counter <= 5 %} {% endif %} - {% endfor %} + {% endfor %} - {% if movie.actor|length > 5 %} + {% if movie.actor|length > 5 %} {% trans '更多' %} - {% endif %} - - {% endif %}
+ {% endif %} + + {% endif %}
{% if movie.genre %}{% trans '类型:' %} {% for genre in movie.get_genre_display %} {{ genre }}{% if not forloop.last %} / {% endif %}