From 58d309ed92dc37670635fb7c60a37d7fdada68bf Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 18:24:34 +0100 Subject: ratings --- imdb-lookup/index.jinja2.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'imdb-lookup/index.jinja2.html') diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index abf194e..a87092e 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -13,7 +13,15 @@ {% set posterBase64 = tmdbcache.poster_base64(info['poster_path']) %} {% if info %}
-

{{ info.title }}

+

+ {% if "vote_average" in info.keys() %} + {{ " ".join(["★"] * int(info["vote_average"])) }} + + {{ " ".join(["☆"] * (10-int(info["vote_average"]))) }} + + {% endif %} + {{ info.title }} +

{% if posterBase64 %} -- cgit v1.2.1