diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-21 22:47:26 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-21 22:47:26 +0100 |
commit | 2d0e49183a5c49badb96a0168dab575f7db70b21 (patch) | |
tree | 521662aaeca0357aa19b39076f7383ccc8839221 /imdb-lookup/index.jinja2.html | |
parent | 3008170f2bd120c43a876b1f1adba885db594618 (diff) | |
download | scripts-2d0e49183a5c49badb96a0168dab575f7db70b21.tar.gz scripts-2d0e49183a5c49badb96a0168dab575f7db70b21.zip |
simpliefied caching
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index 4a140b4..58dd4bf 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -7,24 +7,23 @@ <link rel="stylesheet" href="{{ install("css/style.css") }}"> </head> <body> - {% raw %} <script type="text/x-handlebars"> + <h1>{{title}}</h1> + {% raw %} {{outlet}} </script> <script type="text/x-handlebars" id="index"> <div class="box"> - <div class="filter"> - <h2>Filter</h2> - {{input type='text' value=filter placeholder='Title'}} - </div> <div class="sort"> <h2>Sort</h2> <button {{action 'sortBy' 'imdbRating'}}>IMDB Rating</button> <button {{action 'sortBy' 'imdbVotes'}}>IMDB Votes</button> <button {{action 'sortBy' 'release'}}>Release Year</button> + <button {{action 'sortBy' 'omdbTomato'}}>RT Meter %</button> + <button {{action 'sortBy' 'omdbTomatoRating'}}>RT Rating</button> </div> -</div> - {{#each movie in filteredContent}} + </div> + {{#each movie in arrangedContent}} <div class="box"> <table> <tr> @@ -60,6 +59,8 @@   ➜ <a {{bind-attr href=movie.linkOfdb}} rel="noreferrer">ofdb.db</a>   + ➜ <a {{bind-attr href=movie.linkRotten}} rel="noreferrer">rottentomatoes</a> +   ➜ <span class="imdbid">{{movie.id}}</span> </td> </tr> @@ -74,9 +75,6 @@ <table> <tr><td>IMDB</td><td>{{movie.imdbRating}}</td></tr> <tr><td>IMDB votes</td><td>{{movie.imdbVotes}}</td></tr> - {{#if movie.omdbTomatoFresh}} - <tr><td>Fresh</td><td>{{movie.omdbTomatoFresh}}</td></tr> - {{/if}} {{#if movie.omdbTomatoRating}} <tr><td>RT</td><td>{{movie.omdbTomatoRating}}</td></tr> {{/if}} |