-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.tpl
executable file
·65 lines (65 loc) · 2.61 KB
/
cart.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
<div class="header">
<h2><strong>My Download Basket</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ Download Basket
</ol>
</div>
</div>
<div class="alert alert-info" role="alert">
<strong>RSS Feed</strong> <br/>
Your download basket can also be accessed via an <a
href="{$smarty.const.WWW_TOP}/rss?t=-2&dl=1&i={$userdata.id}&r={$userdata.rsstoken}&del=1">RSS
feed</a>. Some NZB downloaders can read this feed and automatically start downloading.
</div>
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
<div class="nzb_multi_operations">
<small>With Selected:</small>
<div class="btn-group">
<input type="button" class="nzb_multi_operations_cartdelete btn btn-sm btn-danger" value="Delete"/>
{if isset($sabintegrated) && $sabintegrated !=""}
<input type="button" class="nzb_multi_operations_cartsab btn btn-sm btn-info"
value="Send to queue"/>
{/if}
<input type="button" class="nzb_multi_operations_download_cart btn btn-sm btn-success"
value="Download"/>
</div>
</div>
<div class="row">
<div class="col-lg-12 portlets">
<div class="panel panel-default">
<div class="panel-body pagination2">
<table style="width:100%;"
class="data table table-condensed table-striped table-responsive table-hover"
id="browsetable">
<tr>
<th width="50"><input id="chkSelectAll" type="checkbox" class="square-all"/><label
for="chkSelectAll" style="display:none;">Select All</label></th>
<th>Name</th>
<th>Added</th>
<th>Action</th>
</tr>
{foreach $results as $result}
<tr class="{cycle values=",alt"}">
<td class="check">
<input id="chk{$result->release->guid|substr:0:7}" type="checkbox"
class="square"
value="{$result->release->guid}"/>
</td>
<td>
<a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result->release->guid}">{$result->release->searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
</td>
<td class="less"
title="Added on {$result.created_at}">{$result.created_at|date_format}</td>
<td><a title="Delete from your cart" href="/cart/delete/{$result->release->guid}"
class="btn btn-danger btn-sm" style="padding-bottom:2px;">Delete</a></td>
</tr>
{/foreach}
</table>
</form>
{else}
<div class="alert alert-danger" role="alert">There are no NZBs in your download basket.</div>
{/if}