-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowse.tpl
executable file
·244 lines (242 loc) · 10.5 KB
/
browse.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<div class="header">
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/
<a href="{$smarty.const.WWW_TOP}/{if preg_match('/^alt\.binaries|a\.b|dk\./i', $parentcat)}browse/group?g={else}browse/{/if}{if ($parentcat == 'music')}Audio{else}{$parentcat}{/if}">{$parentcat}</a>
/ {if ($catname != '' && $catname != 'all')} <a
href="{$smarty.const.WWW_TOP}/browse/{$parentcat}/{$catname}">{$catname}</a>{/if}
</ol>
</div>
</div>
{$site->adbrowse}
{if $results|@count > 0}
{{Form::open(['id' => 'nzb_multi_operations_form', 'method' => 'get'])}}
<div class="box-body">
<div class="row">
<div class="col-md-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body pagination2">
<div class="row">
<div class="col-md-8">
{if isset($shows)}
<p>
<a href="{$smarty.const.WWW_TOP}/series"
title="View available TV series">Series List</a> |
<a title="Manage your shows" href="{$smarty.const.WWW_TOP}/myshows">Manage
My Shows</a> |
<a title="All releases in your shows as an RSS feed"
href="{$smarty.const.WWW_TOP}/rss?t=-3&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">Rss
Feed</a>
</p>
{/if}
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}/{$category}">Covers
</a>
|
<b>List</b>
<br/>
{/if}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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>
{if count($results) > 0}
<div class="col-md-4">
{$results->links()}
</div>
{/if}
</div>
<hr>
<div class="container">
<table class="data table table-striped table-responsive jambo-table bulk-action">
<thead>
<tr class="headings">
<th><input id="check-all" type="checkbox" class="flat-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}"><i
class="fa-icon-caret-down text-muted"> </i></a>
<a title="Sort Ascending" href="{$orderbyname_asc}"><i
class="fa-icon-caret-up text-muted"> </i></a>
</th>
<th class="column-title" style="display: table-cell;">Category</th>
<th class="column-title" style="display: table-cell;">Posted</th>
<th class="column-title" style="display: table-cell;">Size</th>
<th class="column-title no-link last" style="display: table-cell;">Action</th>
<th class="bulk-actions" colspan="7">
<a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span
class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
</th>
</tr>
</thead>
<tbody>
{foreach $resultsadd as $result}
<tr id="guid{$result->guid}">
<td><input id="chk{$result->guid|substr:0:7}"
type="checkbox" name="table_records" class="flat"
value="{$result->guid}"/></td>
<td>
<a href="{$smarty.const.WWW_TOP}/details/{$result->guid}"
class="title">{$result->searchname|escape:"htmlall"|replace:".":" "}</a>{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}
<br/>
<span class="label label-primary">{$result->grabs}
Grab{if $result->grabs != 1}s{/if}</span>
{if $result->nfoid > 0}<span><a
href="{$smarty.const.WWW_TOP}/nfo/{$result->guid}"
class="modal_nfo label label-primary" rel="nfo">NFO</a>
</span>{/if}
{if $result->jpgstatus == 1 && $userdata.canpreview == 1}<span><a
href="{$smarty.const.WWW_TOP}/covers/sample/{$result->guid}_thumb.jpg"
name="name{$result->guid}"
data-fancybox
class="label label-primary"
rel="preview">Sample</a></span>{/if}
{if $result->haspreview == 1 && $userdata.canpreview == 1}<span><a
href="{$smarty.const.WWW_TOP}/covers/preview/{$result->guid}_thumb.jpg"
name="name{$result->guid}"
data-fancybox
class="label label-primary"
rel="preview">Preview</a></span>{/if}
{if $result->videos_id > 0}<span><a
href="{$smarty.const.WWW_TOP}/series/{$result->videos_id}"
class="label label-primary" rel="series">View TV</a>
</span>{/if}
{if !empty($result->firstaired)}<span
class="seriesinfo label label-primary" title="{$result->guid}">
Aired {if $result->firstaired|strtotime > $smarty.now}in future{else}{$result->firstaired|daysago}{/if}</span>{/if}
{if $result->anidbid > 0}<span><a class="label label-primary"
href="{$smarty.const.WWW_TOP}/anime?id={$result->anidbid}">View
Anime</a></span>{/if}
{if !empty($result->failed)}<span class="label label-primary">
<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}
<span class="label label-primary">{$result->group_name}</span>
<span class="label label-primary">{$result->fromname}</span>
</td>
<td><span class="label label-primary">{$result->category_name}</span>
</td>
<td>{$result->postdate|timeago}</td>
<td>{$result->size|filesize}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$result->guid}"
class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result->guid}/#comments"><i
class="fa fa-comments-o text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Comments"></i></a>
<a href="#"><i
id="guid{$result->guid}"
class="icon_cart text-muted fa fa-shopping-basket"
data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my download basket"></i></a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#">
<i id="guid{$result->guid}"
class="icon_sab text-muted fa fa-share"
data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my Queue">
</i>
</a>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-share" data-toggle="tooltip"
data-placement="top"
title data-original-title="Send to NZBVortex"></i></a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<hr>
<div class="row">
<div class="col-md-8">
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}/{$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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>
{if count($results) > 0}
<div class="col-md-4">
{$results->links()}
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
{{Form::close()}}
{/if}