diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 18:24:34 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 18:24:34 +0100 |
commit | 58d309ed92dc37670635fb7c60a37d7fdada68bf (patch) | |
tree | 807c799cc58bd7e53800dc1f690d576a50aca06b /imdb-lookup/index.jinja2.html | |
parent | 5ce5f9663939042380a858887b22f06e6283223e (diff) | |
download | scripts-58d309ed92dc37670635fb7c60a37d7fdada68bf.tar.gz scripts-58d309ed92dc37670635fb7c60a37d7fdada68bf.zip |
ratings
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)}}"> |