-
Notifications
You must be signed in to change notification settings - Fork 0
/
music.tpl
executable file
·209 lines (209 loc) · 8.75 KB
/
music.tpl
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<div class="header">
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ {if !empty({$catname->parent->title})}<a href="{$smarty.const.WWW_TOP}/browse/{$catname->parent->title}">{$catname->parent->title}</a>{else}<a href="{$smarty.const.WWW_TOP}/browse/{$catname->title}">{$catname->title}</a>{/if}
/ {if !empty({$catname->parent->title})}<a href="{$smarty.const.WWW_TOP}/browse/{$catname->title}">{$catname->title}</a>{else}All{/if}
</ol>
</div>
</div>
<div class="well well-sm">
{include file='search-filter.tpl'}
</div>
<form id="nzb_multi_operations_form" action="get">
<div class="box-body"
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body pagination2">
<div class="row">
<div class="col-md-8">
<div class="nzb_multi_operations">
View: <strong>Covers</strong> | <a
href="{$smarty.const.WWW_TOP}/browse/Audio/{$categorytitle}">List</a><br/>
Check all: <input type="checkbox" class="square-all"/> <br/>
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<input type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
value="Send to my Download Basket"/>
{if isset($sabintegrated) && $sabintegrated !=""}
<input type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
value="Send to Queue"/>
{/if}
{if isset($isadmin)}
<input type="button"
class="nzb_multi_operations_edit btn btn-sm btn-warning"
value="Edit"/>
<input type="button"
class="nzb_multi_operations_delete btn btn-sm btn-danger"
value="Delete"/>
{/if}
</div>
</div>
</div>
<div class="col-md-4">
{$results->links()}
</div>
</div>
<hr>
{foreach $resultsadd as $result}
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-2 small-gutter-left">
<a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result->guid}">
<img src="{$smarty.const.WWW_TOP}/covers/music/{if $result->cover == 1}{$result->musicinfo_id}.jpg{else}{$smarty.const.WWW_ASSETS}/images/no-cover.png{/if}"
class="img-responsive img-rounded"
width="140" border="0"
alt="{$result->artist|escape:"htmlall"} - {$result->title|escape:"htmlall"}"/>{if !empty($result->failed)}
<i class="fa fa-exclamation-circle" style="color: red"
title="This release has failed to download for some users"></i>{/if}
</a>
{if $result->url != ""}<a class="label label-default"
target="_blank"
href="{$site->dereferrer_link}{$result->url}"
name="amazon{$result->musicinfo_id}"
title="View Amazon page">
Amazon</a>{/if}
{if $result->nfoid > 0}<a
href="{$smarty.const.WWW_TOP}/nfo/{$result->guid}"
title="View NFO" class="modal_nfo label label-default" rel="nfo">
NFO</a>{/if}
<a class="label label-default"
href="{$smarty.const.WWW_TOP}/browse/group?g={$result->group_name}"
title="Browse releases in {$result->group_name|replace:"alt.binaries":"a.b"}">Group</a>
{if !empty($result->failed)}
<span class="btn btn-default btn-xs"
title="This release has failed to download for some users">
<i class="fa fa-thumbs-o-up"></i> {$result->grabs}
Grab{if {$result->grabs} != 1}s{/if} / <i
class="fa fa-thumbs-o-down"></i> {$result->failed}
Failed Download{if {$result->failed} > 1}s{/if}</span>
{/if}
</div>
<div class="col-md-10 small-gutter-left">
<h4><a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result->guid}">{$result->artist|escape:"htmlall"}
- {$result->title|escape:"htmlall"}</a> (<a class="title"
title="{$result->year}"
href="{$smarty.const.WWW_TOP}/music?year={$result->year}">{$result->year}</a>)
</h4>
<table>
<tr>
<td id="guid{$result->guid}">
<label>
<input type="checkbox"
class="square"
value="{$result->guid}" id="chksingle"/>
</label>
<span class="label label-default">{$result->size|filesize}</span>
<span class="label label-default">Posted {$result->postdate|timeago}
ago</span>
{if isset($isadmin)}<a class="label label-warning"
href="{$smarty.const.WWW_TOP}/admin/release-edit?id={$result->guid}"
title="Edit release">
Edit</a>{/if}
<br/>
{if $result->genre != ""}
<b>Genre:</b>
<a href="{$smarty.const.WWW_TOP}/music/?genre={$result->genres_id}">{$result->genre|escape:"htmlall"}</a>
<br/>
{/if}
{if $result->publisher != ""}
<b>Publisher:</b>
{$result->publisher|escape:"htmlall"}
<br/>
{/if}
{if $result->releasedate != ""}
<b>Released:</b>
{$result->releasedate|date_format}
<br/>
{/if}
<div>
<a role="button" class="btn btn-default btn-xs"
href="{$smarty.const.WWW_TOP}/getnzb?id={$result->guid}"><i
class="fa fa-cloud-download"></i><span
class="badge"> {$result->grabs}
Grab{if $result->grabs != 1}s{/if}</span></a>
<a role="button" class="btn btn-default btn-xs"
href="{$smarty.const.WWW_TOP}/details/{$result->guid}/#comments"><i
class="fa fa-comment-o"></i><span
class="badge"> {$result->comments}
Comment{if $result->comments != 1}s{/if}</span></a>
<span
id="guid{$result->guid}"
class="btn btn-hover btn-default btn-xs icon_cart text-muted"
title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i>
</span>
{if isset($sabintegrated) && $sabintegrated !=""}
<span
id="guid{$result->guid}"
class="btn btn-hover btn-default btn-xs icon_sab text-muted"
title="Send to my Queue">
<i class="fa fa-share"></i>
</span>
{/if}
{if !empty($result->failed)}
<span class="btn btn-default btn-xs"
title="This release has failed to download for some users">
<i class="fa fa-thumbs-o-up"></i> {$result->grabs}
Grab{if {$result->grabs} != 1}s{/if} / <i
class="fa fa-thumbs-o-down"></i> {$result->failed}
Failed Download{if {$result->failed} > 1}s{/if}</span>
{/if}
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
{/foreach}
<hr>
<div class="row">
<div class="col-md-8">
<div class="nzb_multi_operations">
View: <strong>Covers</strong> | <a
href="{$smarty.const.WWW_TOP}/browse/Audio/{$categorytitle}">List</a><br/>
Check all: <input type="checkbox" class="square-all"/> <br/>
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<input type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
value="Send to my Download Basket"/>
{if isset($sabintegrated) && $sabintegrated !=""}
<input type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
value="Send to Queue"/>
{/if}
{if isset($isadmin)}
<input type="button"
class="nzb_multi_operations_edit btn btn-sm btn-warning"
value="Edit"/>
<input type="button"
class="nzb_multi_operations_delete btn btn-sm btn-danger"
value="Delete"/>
{/if}
</div>
</div>
</div>
<div class="col-md-4">
{$results->links()}
</div>
</div>
</div>
</div>
</div>
</div>
</form>