From 42411217a9a12d7fae7ec2b5fe6f0f8ee43c5d42 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 25 Nov 2014 20:24:30 +0100 Subject: list files --- imdb-lookup/index.jinja2.html | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'imdb-lookup/index.jinja2.html') diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index 181e7ff..6eae465 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -31,15 +31,21 @@ min-height: 200px; box-shadow: 0px 0px 5px 0px gray; } - .infos { + .info { padding-left: 2em; vertical-align: top; } - .infos table td { padding: .2em; } + .info table td { padding: .2em; } + .details { padding: 1em; } + .files { + list-style: none; + padding-left: 0px; + } + .files li:before { margin: 0 1em; content: '▶'; } - {% for (filename, imdb_id) in input %} + {% for (path, imdb_id) in input %} {% set info = tmdbcache.infos(imdb_id) %} {% if info %} {% set age = gmtime.tm_year - int(info['release_date'].split('-')[0]) %} @@ -66,12 +72,12 @@ {% endif %} {% if posterBase64 %} - + {% else %} no image {% endif %} - +
{{ info.title }} {% if info.title != info.original_title %} @@ -79,7 +85,7 @@ {% endif %}
{{ info.overview }}
- +
{% if 'runtime' in info %} @@ -107,14 +113,23 @@ → ofdb.db -
Runtime
+ + {% else %}
- No infos for {{filename}} {{imdb_id}} + No infos for {{path}} {{imdb_id}}
{% endif %} {% endfor %} -- cgit v1.2.1