blob: 8bace8d01ccdce5ac614e16391d5347af8839af5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Movies</title>
<link rel="stylesheet" href="index-files/css/normalize.css" />
<link rel="stylesheet" href="index-files/css/style.css" />
</head>
<body>
<script type="text/x-handlebars">
{{outlet}}
</script>
<script type="text/x-handlebars" id="index">
<div class="box">
<div class="sort">
<fieldset>
<legend>Sort by</legend>
<label>
{{view "radio" name="sortProperties" value="title" property="firstSortProperty"}}
Title
</label>
<label>
{{view "radio" name="sortProperties" value="imdbRating" property="firstSortProperty"}}
IMDB Rating
</label>
<label>
{{view "radio" name="sortProperties" value="imdbVotes" property="firstSortProperty"}}
IMDB Votes
</label>
<label>
{{view "radio" name="sortProperties" value="release" property="firstSortProperty"}}
Release Year
</label>
<label>
{{view "radio" name="sortProperties" value="omdbTomato" property="firstSortProperty"}}
RT Meter %
</label>
<label>
{{view "radio" name="sortProperties" value="omdbTomatoRating" property="firstSortProperty"}}
RT Rating
</label>
</fieldset>
<fieldset style="display: inline-block;">
<legend>Sort Direction</legend>
<label>
{{view "radio" name="sortDirection" value="false" property="sortAscending"}}
Descending
</label>
<label>
{{view "radio" name="sortDirection" value="true" property="sortAscending"}}
Ascending
</label>
</fieldset>
<fieldset style="display: inline-block;">
<legend>View</legend>
<label>Per page:
{{view "select" content=visiblePerPage value=perPage}}
</label>
</fieldset>
<fieldset>
<legend>Current page</legend>
<center>
{{#each pageLink in pages}}
<label>{{pageLink.runningLabel}}</label>
<button {{bind-attr style=pageLink.style}}{{action 'setPage' pageLink.number}}>{{pageLink.number}}</button>
{{/each}}
</center>
</fieldset>
</div>
</div>
{{#each movie in paginatedContent}}
<div class="box">
<table>
<tr>
<td class="poster">
{{#if movie.poster}}
<img {{bind-attr src=movie.poster}} />
{{else}}
<span> no image </span>
{{/if}}
</td>
<td class="info">
<div class="title">
{{movie.title}}
</div>
<div class="headline">
<div class="plot">{{movie.plot}}</div>
<div class="consensus">{{movie.omdbTomatoConsensus}}</div>
<table class="details">
{{#if movie.website}}
<tr>
<td colspan="2">
➜ <a {{bind-attr href=movie.website}}>{{movie.website}}</a>
</td>
</tr>
{{/if}}
<tr>
<td colspan="2">
➜ <a {{bind-attr href=movie.linkTmdb}} rel="noreferrer">themoviedb.org</a> 
➜ <a {{bind-attr href=movie.linkImdb}} rel="noreferrer">imdb.com</a> 
➜ <a {{bind-attr href=movie.linkLetterboxd}} rel="noreferrer">letterboxd.com</a> 
➜ <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>
</table>
<ul class="files">
<li><a {{bind-attr href=movie.path.path}}>{{movie.path.label}}</a>
<li>
{{#each tag in movie.tags}}
{{tag}}
{{/each}}
</li>
</ul>
</td>
<td class="ratings">
<table>
<tr><td>IMDB</td><td>{{movie.imdbRating}}</td></tr>
<tr><td>IMDB votes</td><td>{{movie.imdbVotes}}</td></tr>
{{#if movie.omdbTomatoRating}}
<tr><td>RT</td><td>{{movie.omdbTomatoRating}}</td></tr>
{{/if}}
{{#if movie.omdbTomatoUserRating}}
<tr><td>RT User</td><td>{{movie.omdbTomatoUserRating}}</td></tr>
{{/if}}
{{#if movie.omdbTomato}}
<tr><td>Meter</td><td>{{movie.omdbTomato}}%</td></tr>
{{/if}}
{{#if movie.omdbUserTomato}}
<tr><td>Meter User</td><td>{{movie.omdbUserTomato}}%</td></tr>
{{/if}}
</table>
</td>
</tr>
</table>
<div class="box-footer">
{{movie.tagline}}
</div>
</div>
{{/each}}
<div style="text-align:center; margin: 40px;">
<button style="width:150px;" {{action 'prevPage'}}>Previous</button>
<button style="width:150px;" {{action 'nextPage'}}>Next</button>
</div>
</script>
<script type="text/javascript" src="index-files/js/libs/all.min.js"></script>
<script type="text/javascript" src="index-files/js/app.js"></script>
<script type="text/javascript" src="index-files/data.js"></script>
</body>
</html>
<!--
vim: tabstop=1 expandtab shiftwidth=1 softtabstop=1:
-->
|