-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewanime.tpl
executable file
·185 lines (184 loc) · 7.23 KB
/
viewanime.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
<div class="well well-small"
{if isset($nodata) && $nodata !=''}
<div class="header">
<h2>View > <strong>Anime</strong></h2>
<p>{$nodata}</p>
</div>
{else}
<div class="header">
<h2>View > <strong>Anime</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ Anime
</ol>
</div>
</div>
<div class="well well-sm">
<h1>{$animeTitle}
{if isset($isadmin)}
<a class="btn btn-xs btn-warning" title="Edit AniDB data"
href="{$smarty.const.WWW_TOP}/admin/anidb-edit.php?id={$animeAnidbid}& from={$smarty.server.REQUEST_URI|escape:"url"}">Edit</a>
{/if}
</h1>
{if animePicture != ''}
<div style="text-align: center;">
<img class="shadow img img-polaroid" alt="{$animeTitle} Picture"
src="{$smarty.const.WWW_TOP}/covers/anime/{$animeAnidbid}.jpg"/>
</div>
<br/>
{/if}
<p>
{if $animeType != ''}({$animeType|escape:"htmlall"}){/if}<br>
{if $animeCategories != ''}<b>{$animeCategories}</b><br/>{/if}
<span class="descinitial">{$animeDescription|escape:"htmlall"|nl2br|magicurl|truncate:"1500":" </span><a class=\"descmore\" href=\"#\"> more...</a>"}
{if $animeDescription|strlen > 1500}<span
class="descfull">{$animeDescription|escape:"htmlall"|nl2br|magicurl}</span>{else}</span>{/if}
</p>
<p>
{if $animeCharacters != ''}<br>Characters: {$animeCharacters|escape:"htmlall"}{/if}
<br>
{if $animeCreators !=''}<br><b>Created by: {$animeCreators|escape:"htmlall"}</b>{/if}
</p>
<p>
{if $animeStartDate != '' && $animeStartDate != '1970-01-01'}
<br>
<b>Started:
{$animeStartDate|escape:"htmlall"}</b>{/if}
{if $animeEndDate != '' && $animeEndDate != '1970-01-01'}
<br>
<b>Ended:
{$animeEndDate|escape:"htmlall"}</b>{/if}
{if $animeRating != ''}<br><b>AniDB Rating: {$animeRating|escape:"htmlall"}</b>{/if}
{if $animeRelated != ''}<br><i>Related Anime: {$animeRelated|escape:"htmlall"}</i><br/>{/if}
</p>
<div style="text-align: center;">
<div class="btn-group">
<a class="btn btn-sm btn-default"
href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$animeAnidbid}"
title="View AniDB">View AniDB</a>
<a class="btn btn-sm btn-default"
href="{$smarty.const.WWW_TOP}/rss?anidb={$animeAnidbid}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">RSS
feed for this Anime <i class="fa fa-rss"></i></a>
</div>
</div>
</div>
<form id="nzb_multi_operations_form" action="get">
<div class="well well-sm">
<div class="nzb_multi_operations">
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 class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body pagination2">
<table style="width:100%;" class="data table table-striped responsive-utilities jambo-table"
id="browsetable">
<tr>
<th><input id="check-all" type="checkbox" class="flat-all"/> Select All</th>
<th>Name</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
{foreach $animeEpisodeTitles as $result}
<tr class="{cycle values=",alt"}">
<td>
<input id="guid{$result.guid}"
type="checkbox" class="flat"
value="{$result.guid}"/></td>
<td>
<a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result.guid}">{$result.searchname|escape:"htmlall"|replace:".":" "}</a>
<div>
<div>
{if $result.nfoid > 0}<span><a
href="{$smarty.const.WWW_TOP}/nfo/{$result.guid}"
class="modal_nfo label label-primary text-muted">NFO</a>
</span>{/if}
{if $result.haspreview == 1 && $userdata.canpreview == 1}<a
href="{$smarty.const.WWW_TOP}/covers/preview/{$result.guid}_thumb.jpg"
name="name{$result.guid}"
title="Screenshot of {$result.searchname|escape:"htmlall"}"
class="label label-primary" rel="preview">Preview</a>{/if}
<span class="label label-primary">{$result.grabs}
Grab{if $result.grabs != 1}s{/if}</span>
{if $result.reid > 0}<span class="mediainfo label label-primary"
title="{$result.guid}">Media</span>{/if}
</div>
</div>
</td>
<td><span class="label label-primary">{$result.category_name}</span></td>
<td width="40" title="{$result.postdate}">{$result.postdate|timeago}</td>
<td>{$result.size|filesize}</td>
<td class="icon_nzb"><a
href="{$smarty.const.WWW_TOP}/getnzb?id={$result.guid}"><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 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="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}
</table>
</div>
</div>
</div>
</div>
</div>
</form>
{/if}