diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-12-20 04:59:41 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-12-20 04:59:41 +0100 |
commit | 9089d2eb4bc34994abaf6ed173e95c97243789cd (patch) | |
tree | 97b092f159c73a10f88dc62bb3fb086ec85ac5ed /imdb-lookup/index.jinja2.html | |
parent | a9e676eb8af8f9881c152dacbea450610e8002fa (diff) | |
download | scripts-9089d2eb4bc34994abaf6ed173e95c97243789cd.tar.gz scripts-9089d2eb4bc34994abaf6ed173e95c97243789cd.zip |
search and sort
Diffstat (limited to 'imdb-lookup/index.jinja2.html')
-rw-r--r-- | imdb-lookup/index.jinja2.html | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/imdb-lookup/index.jinja2.html b/imdb-lookup/index.jinja2.html index f19fdd0..4a140b4 100644 --- a/imdb-lookup/index.jinja2.html +++ b/imdb-lookup/index.jinja2.html @@ -12,7 +12,19 @@ {{outlet}} </script> <script type="text/x-handlebars" id="index"> - {{#each movie in model}} + <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> + </div> +</div> + {{#each movie in filteredContent}} <div class="box"> <table> <tr> @@ -28,21 +40,6 @@ {{movie.title}} </div> <div class="headline"> - <!-- - {% if local_title != info.title %} “{ local_title }}”, {% endif %} - {% if info.original_title != info.title %} “{ info.original_title }}”, {% endif %} - </div> - <div class="headline"> - by { imdb_data["directors_summary"] | join(", ", attribute="name.name") }}, - runtime { info['runtime'] }} min, {year}} - {% if omdb_data.Rated != 'N/A' %} - <span class="rated">{omdb_data.Rated}}</span> - {% endif %} - </div> - <div class="headline"> - Starring: { imdb_data["cast_summary"] | join(", ", attribute="name.name") }} - </div> - --> <div class="plot">{{movie.plot}}</div> <div class="consensus">{{movie.omdbTomatoConsensus}}</div> <table class="details"> @@ -103,8 +100,8 @@ {{/each}} </script> {% endraw %} - - <script type="text/javascript" src="{{ install("js/all.min.js") }}"></script> + <script type="text/javascript" src="{{ install("js/libs/all.min.js") }}"></script> + <script type="text/javascript" src="{{ install("js/app.js") }}"></script> <script type="text/javascript" src="{{ data('dataCb') }}"></script> </body> </html> |