-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathairplay.html
More file actions
58 lines (58 loc) · 1.89 KB
/
Copy pathairplay.html
File metadata and controls
58 lines (58 loc) · 1.89 KB
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
{% set odays = [7, 14, 30] %}
<div class='top-airplay' style='display: none'>
<form action="?" method="POST" autocomplete="off">
<input type="hidden" name="action" value="{{ app.request.action }}">
<input type="hidden" name="subaction" value="{{ app.request.subaction }}">
<input type="hidden" name="limit" value="{{ limit }}">
<h2>Top airplay for the last
<select name="days">
{% for oday in odays %}
<option value="{{ oday }}" {{~ oday == days ? " selected" }}>{{ oday }}</option>
{% endfor %}
</select>
days
</h2>
</form>
{% if topPlays | length %}
<table class='playlistTable'>
<thead>
<tr class='playlistHdr'><th></th><th>Artist</th><th></th><th>Album/Label</th></tr>
</thead>
<tbody>
{%~ for index, entry in topPlays %}
<tr class='songRow'>
<td>{{ index + 1 }}.</td>
<td>{{ entry.iscoll ? "Various Artists" : entry.artist }}</td>
<td style='width: 15px'>{{ entry.reviewed ? "<div class='albumReview'></div>" }}</td>
<td>
{%~ if entry.album | length %}
{%~ if entry.tag %}
<a class='nav' href='?action=search&s=byAlbumKey&n={{ entry.tag }}'>{{ entry.album }}</a>
{%~ else %}
{{ entry.album }}
{%~ endif %}
{%~ if entry.label | length %}
<span class='songLabel'> / {{ entry.label }}</span>
{%~ endif %}
{%~ endif %}
</td>
</tr>
{%~ endfor %}
</tbody>
</table>
<h3>For complete album charting, see our <a href='?action=viewChart'><b>Airplay Charts</b></a></h3>
{% else %}
<h3>No top airplay is available</h3>
{% endif %}
</div>
<script><!--
$().ready(function() {
$("div.top-airplay select").selectmenu({width: 'auto'})
.on('change selectmenuchange', function() {
this.form.submit();
})
.closest('div').css('display', 'block')
.find('select').selectmenu('widget').trigger('focus');
});
// -->
</script>