-
Notifications
You must be signed in to change notification settings - Fork 0
/
console.tpl
executable file
·245 lines (245 loc) · 9.61 KB
/
console.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
245
<div class="header">
<div class="breadcrumb-wrapper">
<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>
<div class="well well-sm">
{include file='search-filter.tpl'}
</div>
{{Form::open(['id' => 'nzb_multi_operations_form', 'method' => '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/Console/{$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>
</div>
{{Form::close()}}
<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">
<div class="row">
<div class="col-md-8">
{if count($results) > 0}
{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/console/{if $result->cover == 1}{$result->consoleinfo_id}.jpg{else}{$smarty.const.WWW_ASSETS}/images/no-cover.png{/if}"
class="img-responsive img-rounded"
width="140" border="0"
alt="{$result->title|escape:"htmlall"}"/>{if !empty($result->failed)}
<i class="fa fa-alarm" 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->consoleinfo_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->title|escape:"htmlall"}</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 isset($result->genre) && $result->genre != ""}
<b>Genre:</b>
{$result->genre}
<br/>
{/if}
{if isset($result->esrb) && $result->esrb != ""}
<b>Rating:</b>
{$result->esrb}
<br/>
{/if}
{if isset($result->publisger) && $result->publisher != ""}
<b>Publisher:</b>
{$result->publisher}
<br/>
{/if}
{if isset($result->releasedate) && $result->releasedate != ""}
<b>Released:</b>
{$result->releasedate|date_format}
<br/>
{/if}
{if isset($result->review) && $result->review != ""}
<b>Review:</b>
{$result->review|escape:'htmlall'}
<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}
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
{/foreach}
{else}
No console releases with covers available!
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{Form::open(['id' => 'nzb_multi_operations_form', 'method' => '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}/Console/{$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>
</div>
{{Form::close()}}