-
Notifications
You must be signed in to change notification settings - Fork 0
/
myshows.tpl
executable file
·67 lines (67 loc) · 2.44 KB
/
myshows.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
<div class="header">
<h2>My > <strong>TV Shows</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ My TV Shows
</ol>
</div>
</div>
<div class="btn-group">
<a class="btn btn-sm btn-default" title="View available TV series" href="{$smarty.const.WWW_TOP}/series">View
all series</a>
<a class="btn btn-sm btn-default" title="View a list of all releases in your shows"
href="{$smarty.const.WWW_TOP}/myshows/browse">View releases for My Shows</a>
<a class="btn btn-sm btn-default" 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 for
My Shows <i class="fa fa-rss"></i></a>
</div>
<hr>
{if $shows|@count > 0}
<div class="box-body">
<div class="row">
<div class="col-lg-12 portlets">
<div class="panel panel-default">
<div class="panel-body pagination2">
<table class="data table table-striped table-condensed table-responsive table-hover">
<tr>
<th>Name</th>
<th width="80">Category</th>
<th width="110">Added</th>
<th width="130" class="mid">Options</th>
</tr>
{foreach $shows as $show}
<tr>
<td>
<a title="View details"
href="{$smarty.const.WWW_TOP}/series/{$show.videos_id}">{$show.title|escape:"htmlall"|wordwrap:75:"\n":true}</a>
</td>
<td>
<span class="label label-default">{if $show.categoryNames != ''}{$show.categoryNames|escape:"htmlall"}{else}All{/if}</span>
</td>
<td title="Added on {$show.created_at}">{$show.created_at|date_format}</td>
<td>
<div class="btn-group">
<a class="btn btn-xs btn-warning myshows"
href="{$smarty.const.WWW_TOP}/myshows/edit/{$show.videos_id}"
rel="edit" name="series{$show.videos_id}"
title="Edit Categories">Edit</a>
<a class="btn btn-xs btn-danger confirm_action myshows"
href="{$smarty.const.WWW_TOP}/myshows/delete/{$show.videos_id}"
rel="remove" name="series{$show.videos_id}"
title="Remove from My Shows">Remove</a>
</div>
</td>
</tr>
{/foreach}
</table>
</div>
</div>
</div>
</div>
</div>
{else}
<div class="alert alert-danger">
<strong>Sorry!</strong> No shows bookmarked yet!
</div>
{/if}