diff options
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 10 |
1 files changed, 9 insertions, 1 deletions
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 %} <div style="clear: left; padding-top: 3em;"> - <h2 style="">{{ info.title }}</h2> + <h2 style=""> + {% if "vote_average" in info.keys() %} + {{ " ".join(["★"] * int(info["vote_average"])) }} + <span style="color:gray;"> + {{ " ".join(["☆"] * (10-int(info["vote_average"]))) }} + </span> + {% endif %} + {{ info.title }} + </h2> <div style="width: 185px; float: left; min-height: 200px; border: 2px solid gray;"> {% if posterBase64 %} <a href="{{urlencode(filename)}}"> |