From fb47fbb01638b82a29c6ec10a42a0c6d12ea89f9 Mon Sep 17 00:00:00 2001 From: doubaniux Date: Sat, 28 Nov 2020 01:24:49 +0100 Subject: [PATCH] add movie rating at search result page | fix #53 --- common/templates/common/search_result.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/common/templates/common/search_result.html b/common/templates/common/search_result.html index 0608fc35..587048d5 100644 --- a/common/templates/common/search_result.html +++ b/common/templates/common/search_result.html @@ -164,6 +164,13 @@ + {% if movie.rating %} +
+ {{ movie.rating }} + {% else %} +
{% trans '暂无评分' %}
+ {% endif %} + @@ -176,14 +183,9 @@ {% if movie.genre %}{% trans '类型' %} {% for genre in movie.get_genre_display %} {{ genre }}{% if not forloop.last %} {% endif %} - {% endfor %}/ - {% endif %} - - {% if movie.other_title %}{% trans '又名' %} - {% for other_title in movie.other_title %} - {{ other_title }}{% if not forloop.last %} {% endif %} {% endfor %} {% endif %} + {% if movie.actor %}{% trans '主演' %}