diff options
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}} |