<div class="header">
	<h2>My > <strong>Movies</strong></h2>
	<div class="breadcrumb-wrapper">
		<ol class="breadcrumb">
			<li><a href="{{url("{$site->home_link}")}}">Home</a></li>
			/ My Movies
		</ol>
	</div>
</div>
<div class="row">
	<div class="alert alert-info">
		Using 'My Movies' you can search for movies, and add them to a wishlist. If the movie
		becomes available it will be added to an <strong><a
					href="{{url("/rss/mymovies?dl=1&amp;i={$userdata.id}&amp;api_token={$userdata.api_token}")}}">RSS
				Feed</a></strong> you can use to automatically download. You can <strong><a
					href="{{route('mymovies')}}">Manage Your Movie
				List</a></strong> or to remove old items.
	</div>
	<div class="well well-sm">
		{if $movies|@count > 0}
			<table class="data highlight Sortable table" id="browsetable">
				<tr>
					<th style="padding-top:0px; padding-bottom:0px;"></th>
					<th style="padding-top:0px; padding-bottom:0px;">name</th>
					<th style="padding-top:0px; padding-bottom:0px;">category</th>
					<th style="padding-top:0px; padding-bottom:0px;">added</th>
					<th class="mid" style="padding-top:0px; padding-bottom:0px;">options</th>
				</tr>
				{foreach $movies as $movie}
					<tr class="{cycle values=",alt"}">
						<td class="mid" style="width:140px">
							<div class="movcover">
								<img class="shadow img img-polaroid"
									 src="{{url("/covers/movies/{if $movie.cover == 1}{$movie.imdbid}-cover.jpg{else}no-cover.jpg{/if}")}}"
									 width="120" border="0" alt="{$movie.title|escape:"htmlall"}"/>
								<div class="movextra">
									<div style="text-align: center;">
										<a class="rndbtn badge badge-imdb" target="_blank"
										   href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$movie.imdbid}"
										   title="View Imdb">Imdb</a>
									</div>
								</div>
							</div>
						</td>
						<td>
							<h4><a title="View Movie"
								   href="{{url("/Movies?imdb={$movie.imdbid}")}}">{$movie.title|escape:"htmlall"}
									({$movie.year})</a></h4>
							{if isset($movie.tagline) && $movie.tagline != ''}<b>{$movie.tagline}</b><br/>{/if}
							{if isset($movie.plot) && $movie.plot != ''}{$movie.plot}<br/><br/>{/if}
							{if isset($movie.genre) && $movie.genre != ''}<b>Genre:</b>{$movie.genre}<br/>{/if}
							{if isset($movie.director) && $movie.director != ''}
								<b>Director:</b>
								{$movie.director}
								<br/>
							{/if}
							{if isset($movie.actors) && $movie.actors != ''}
								<b>Starring:</b>
								{$movie.actors}
								<br/>
								<br/>
							{/if}
						</td>
						<td class="less">{if $movie.categoryNames != ''}{$movie.categoryNames|escape:"htmlall"}{else}All{/if}</td>
						<td class="less" style="width:100px;"
							title="Added on {$movie.created_at}">{$movie.created_at|date_format}</td>
						<td class="mid" style="width:100px;">
							<div class="btn-group">
								<a class="btn btn-mini btn-warning mymovies"
								   href="{{url("/mymovies?id=edit&imdb={$movie.imdbid}")}}" rel="edit"
								   name="movies{$movie.imdbid}" title="Edit Categories">Edit</a>&nbsp;&nbsp;
								<a class="btn btn-mini btn-danger mymovies"
								   href="{{url("/mymovies?id=delete&imdb={$movie.imdbid}")}}" rel="remove"
								   name="movies{$movie.imdbid}" title="Remove from My Movies">Remove</a>
							</div>
						</td>
					</tr>
				{/foreach}
			</table>
		{else}
			<div class="alert">
				<button type="button" class="close" data-dismiss="alert">&times;</button>
				<strong>Sorry!</strong> No movies bookmarked
			</div>
		{/if}
	</div>
</div>

