mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
615 lines
32 KiB
615 lines
32 KiB
8 years ago
|
@using Ombi.UI.Helpers
|
||
8 years ago
|
@using Ombi.UI.Resources
|
||
8 years ago
|
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<Ombi.UI.Models.SearchLoadViewModel>
|
||
9 years ago
|
@{
|
||
|
var baseUrl = Html.GetBaseUrl();
|
||
|
var url = string.Empty;
|
||
|
if (!string.IsNullOrEmpty(baseUrl.ToHtmlString()))
|
||
|
{
|
||
|
url = "/" + baseUrl.ToHtmlString();
|
||
|
}
|
||
8 years ago
|
|
||
|
|
||
9 years ago
|
}
|
||
|
<div>
|
||
8 years ago
|
|
||
|
<div hidden="hidden" id="useNewSearch">@Model.CustomizationSettings.NewSearch</div>
|
||
8 years ago
|
<div hidden="hidden" id="enableNetflix">@Model.CustomizationSettings.EnableNetflixResults</div>
|
||
8 years ago
|
<h1 id="searchTitle">@UI.Search_Title</h1>
|
||
8 years ago
|
<h4>@string.Format(UI.Search_Paragraph, Model.Emby ? "Emby" : "Plex")</h4>
|
||
9 years ago
|
<br />
|
||
|
<!-- Nav tabs -->
|
||
|
|
||
|
|
||
|
<ul id="nav-tabs" class="nav nav-tabs" role="tablist">
|
||
8 years ago
|
@if (Model.Settings.SearchForMovies)
|
||
9 years ago
|
{
|
||
|
<li role="presentation" class="active">
|
||
8 years ago
|
<a id="movieTabButton" href="#MoviesTab" aria-controls="home" role="tab" data-toggle="tab"><i class="fa fa-film"></i> @UI.Search_Movies</a>
|
||
9 years ago
|
|
||
|
</li>
|
||
8 years ago
|
@if (Model.Settings.SearchForActors)
|
||
|
{
|
||
|
<li role="presentation">
|
||
|
<a id="actorTabButton" href="#ActorsTab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-users"></i> @UI.Search_Actors</a>
|
||
8 years ago
|
|
||
8 years ago
|
</li>
|
||
|
}
|
||
9 years ago
|
}
|
||
8 years ago
|
@if (Model.Settings.SearchForTvShows)
|
||
9 years ago
|
{
|
||
|
<li role="presentation">
|
||
8 years ago
|
<a id="tvTabButton" href="#TvShowTab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-television"></i> @UI.Search_TvShows</a>
|
||
9 years ago
|
|
||
|
</li>
|
||
|
}
|
||
8 years ago
|
@if (Model.Settings.SearchForMusic)
|
||
9 years ago
|
{
|
||
|
<li role="presentation">
|
||
|
<a href="#MusicTab" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-music"></i>@UI.Search_Albums</a>
|
||
|
</li>
|
||
|
}
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
<!-- Tab panes -->
|
||
|
<div class="tab-content">
|
||
8 years ago
|
@if (Model.Settings.SearchForMovies)
|
||
9 years ago
|
{
|
||
|
<!-- Movie tab -->
|
||
|
<div role="tabpanel" class="tab-pane active" id="MoviesTab">
|
||
|
<div class="input-group">
|
||
|
<input id="movieSearchContent" type="text" class="form-control form-control-custom form-control-search form-control-withbuttons">
|
||
|
<div class="input-group-addon">
|
||
|
<div class="btn-group">
|
||
|
<a href="#" class="btn btn-sm btn-primary-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||
|
@UI.Search_Suggestions
|
||
|
<i class="fa fa-chevron-down"></i>
|
||
|
</a>
|
||
|
<ul class="dropdown-menu">
|
||
|
<li><a id="moviesComingSoon" href="#">@UI.Search_ComingSoon</a></li>
|
||
|
<li><a id="moviesInTheaters" href="#">@UI.Search_InTheaters</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<i id="movieSearchButton" class="fa fa-search"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
<br />
|
||
|
<br />
|
||
|
<!-- Movie content -->
|
||
|
<div id="movieList">
|
||
|
</div>
|
||
|
</div>
|
||
8 years ago
|
@if (Model.Settings.SearchForActors)
|
||
|
{
|
||
8 years ago
|
<!-- Actors tab -->
|
||
8 years ago
|
<div role="tabpanel" class="tab-pane" id="ActorsTab">
|
||
|
<div class="input-group">
|
||
|
<input id="actorSearchContent" type="text" class="form-control form-control-custom form-control-search form-control-withbuttons">
|
||
|
<div class="input-group-addon">
|
||
|
<i id="actorSearchButton" class="fa fa-search"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="checkbox">
|
||
8 years ago
|
<input type="checkbox" id="actorsSearchNew" name="actorsSearchNew"><label for="actorsSearchNew">@UI.Search_NewOnly</label>
|
||
8 years ago
|
</div>
|
||
9 years ago
|
|
||
8 years ago
|
<br />
|
||
|
<br />
|
||
|
<!-- Movie content -->
|
||
|
<div id="actorMovieList">
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
8 years ago
|
}
|
||
9 years ago
|
|
||
8 years ago
|
@if (Model.Settings.SearchForTvShows)
|
||
9 years ago
|
{
|
||
|
<!-- TV tab -->
|
||
|
<div role="tabpanel" class="tab-pane" id="TvShowTab">
|
||
|
<div class="input-group">
|
||
8 years ago
|
<input id="tvSearchContent" type="text" class="form-control form-control-custom form-control-search form-control-withbuttons">
|
||
9 years ago
|
<div class="input-group-addon">
|
||
8 years ago
|
<div class="btn-group">
|
||
|
<a href="#" class="btn btn-sm btn-primary-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||
|
@UI.Search_Suggestions
|
||
|
<i class="fa fa-chevron-down"></i>
|
||
|
</a>
|
||
|
<ul class="dropdown-menu">
|
||
|
<li><a id="popularShows" href="#">Popular Shows</a></li>
|
||
|
<li><a id="trendingShows" href="#">Trending Shows</a></li>
|
||
|
<li><a id="mostWatchedShows" href="#">Most Watched Shows</a></li>
|
||
|
<li><a id="anticipatedShows" href="#">Most Anticipated Shows</a></li>
|
||
|
</ul>
|
||
|
</div><i id="tvSearchButton" class="fa fa-search"></i>
|
||
9 years ago
|
</div>
|
||
|
</div>
|
||
|
<br />
|
||
|
<br />
|
||
|
<!-- TV content -->
|
||
|
<div id="tvList">
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
|
|
||
8 years ago
|
@if (Model.Settings.SearchForMusic)
|
||
9 years ago
|
{
|
||
|
<!-- Music tab -->
|
||
|
<div role="tabpanel" class="tab-pane" id="MusicTab">
|
||
|
<div class="input-group">
|
||
|
<input id="musicSearchContent" type="text" class="form-control form-control-custom form-control-search">
|
||
|
<div class="input-group-addon">
|
||
|
<i id="musicSearchButton" class="fa fa-search"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
<br />
|
||
|
<br />
|
||
|
<!-- Music content -->
|
||
|
<div id="musicList">
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
|
|
||
8 years ago
|
|
||
8 years ago
|
<script id="search-templateNew" type="text/x-handlebars-template">
|
||
8 years ago
|
<div class="row">
|
||
|
<div id="{{id}}imgDiv" class="col-sm-2">
|
||
|
|
||
|
{{#if_eq type "movie"}}
|
||
|
{{#if posterPath}}
|
||
|
<img class="img-responsive" src="https://image.tmdb.org/t/p/w150/{{posterPath}}" alt="poster">
|
||
|
{{/if}}
|
||
|
{{/if_eq}}
|
||
|
{{#if_eq type "tv"}}
|
||
|
{{#if posterPath}}
|
||
|
<img class="img-responsive" width="150" src="{{posterPath}}" alt="poster">
|
||
|
{{/if}}
|
||
|
{{/if_eq}}
|
||
|
|
||
|
</div>
|
||
|
<div class="col-sm-10">
|
||
|
<div>
|
||
|
|
||
|
<h4>
|
||
|
{{#if_eq type "movie"}}
|
||
|
<a href="https://www.themoviedb.org/movie/{{id}}/" target="_blank">
|
||
|
{{else}}
|
||
|
<a href="http://www.imdb.com/title/{{imdb}}/" target="_blank">
|
||
|
{{/if_eq}}
|
||
|
{{title}} ({{year}})
|
||
|
|
||
|
{{#if status}}
|
||
|
<span class="label label-primary" style="font-size:60%" target="_blank">{{status}}</span>
|
||
|
{{/if}}
|
||
|
</h4>
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
8 years ago
|
<div class="row">
|
||
8 years ago
|
|
||
8 years ago
|
<div class="col-md-7 col-xs-7">
|
||
8 years ago
|
|
||
8 years ago
|
{{#if available}}
|
||
8 years ago
|
<span class="label label-success">@UI.Search_Available</span>
|
||
8 years ago
|
{{else}}
|
||
|
{{#if approved}}
|
||
|
<span class="label label-info">@UI.Search_Processing_Request</span>
|
||
|
{{else if requested}}
|
||
|
<span class="label label-warning">@UI.Search_Pending_approval</span>
|
||
|
{{else}}
|
||
|
<span class="label label-danger">@UI.Search_Not_Requested_Yet</span>
|
||
|
{{/if}}
|
||
|
{{/if}}
|
||
|
{{#if firstAired}}
|
||
|
<span class="label label-info" target="_blank">Air Date: {{firstAired}}</span>
|
||
|
{{/if}}
|
||
8 years ago
|
|
||
8 years ago
|
{{#if releaseDate}}
|
||
|
<span class="label label-info" target="_blank">Release Date: {{releaseDate}}</span>
|
||
|
{{/if}}
|
||
8 years ago
|
|
||
8 years ago
|
|
||
|
<span id="{{id}}netflixTab"></span>
|
||
|
</div>
|
||
|
<!--Info Labels-->
|
||
|
<div class="col-md-5 col-xs-5" style="text-align:right;">
|
||
|
{{#if homepage}}
|
||
|
<a href="{{homepage}}" target="_blank"><span class="label label-info">HomePage</span></a>
|
||
|
{{/if}}
|
||
|
{{#if trailer}}
|
||
|
<a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a>
|
||
|
{{/if}}
|
||
|
</div>
|
||
8 years ago
|
</div>
|
||
8 years ago
|
|
||
|
<div class="row">
|
||
|
<!-- Description -->
|
||
|
<p style="font-size:0.9rem !important">{{overview}}</p>
|
||
|
<br />
|
||
|
<br />
|
||
8 years ago
|
</div>
|
||
|
|
||
|
<form method="POST" action="@url/search/request/{{type}}" id="form{{id}}">
|
||
|
<input name="{{type}}Id" type="text" value="{{id}}" hidden="hidden" />
|
||
|
{{#if_eq type "movie"}}
|
||
|
{{#if_eq available true}}
|
||
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Available</button>
|
||
|
<br />
|
||
|
<br />
|
||
8 years ago
|
{{#if url}}
|
||
8 years ago
|
<a style="text-align: right" class="btn btn-sm btn-primary-outline" href="{{url}}" target="_blank"><i class="fa fa-eye"></i> @UI.Search_ViewInPlex</a>
|
||
8 years ago
|
{{/if}}
|
||
8 years ago
|
{{else}}
|
||
|
{{#if_eq requested true}}
|
||
|
<button style="text-align: right" class="btn btn-primary-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Requested</button>
|
||
|
{{else}}
|
||
|
<button id="{{id}}" style="text-align: right" class="btn btn-primary-outline requestMovie" type="submit"><i class="fa fa-plus"></i> @UI.Search_Request</button>
|
||
|
{{/if_eq}}
|
||
|
{{/if_eq}}
|
||
|
{{/if_eq}}
|
||
|
|
||
|
{{#if_eq type "tv"}}
|
||
|
{{#if_eq tvFullyAvailable true}}
|
||
|
@*//TODO Not used yet*@
|
||
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Available</button><br />
|
||
|
{{else}}
|
||
|
{{#if_eq enableTvRequestsForOnlySeries true}}
|
||
|
<button id="{{id}}" style="text-align: right" class="btn {{#if available}}btn-success-outline{{else}}btn-primary-outline{{/if}} btn-primary-outline dropdownTv" season-select="0" type="button"><i class="fa fa-plus"></i> @UI.Search_Request</button>
|
||
|
{{else}}
|
||
|
<div class="dropdown">
|
||
|
<button id="{{id}}" class="btn {{#if available}}btn-success-outline{{else}}btn-primary-outline{{/if}} dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||
|
<i class="fa fa-plus"></i> {{#if available}}@UI.Search_Available{{else}}@UI.Search_Request {{/if}}
|
||
|
<span class="caret"></span>
|
||
|
</button>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||
|
<li><a id="{{id}}" season-select="0" class="dropdownTv " href="#">@UI.Search_AllSeasons</a></li>
|
||
|
{{#if_eq disableTvRequestsBySeason false}}
|
||
|
<li><a id="{{id}}" season-select="1" class="dropdownTv" href="#">@UI.Search_FirstSeason</a></li>
|
||
|
<li><a id="{{id}}" season-select="2" class="dropdownTv" href="#">@UI.Search_LatestSeason</a></li>
|
||
|
<li><a id="SeasonSelect" data-identifier="{{id}}" data-toggle="modal" data-target="#seasonsModal" href="#">@UI.Search_SelectSeason...</a></li>
|
||
|
{{/if_eq}}
|
||
|
{{#if_eq disableTvRequestsByEpisode false}}
|
||
|
<li><a id="EpisodeSelect" data-identifier="{{id}}" data-toggle="modal" data-target="#episodesModal" href="#">@UI.Search_SelectEpisode...</a></li>
|
||
|
{{/if_eq}}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{/if_eq}}
|
||
|
{{#if available}}
|
||
|
<br />
|
||
|
<a style="text-align: right" class="btn btn-sm btn-primary-outline" href="{{url}}" target="_blank"><i class="fa fa-eye"></i> @UI.Search_ViewInPlex</a>
|
||
|
{{/if}}
|
||
|
{{/if_eq}}
|
||
|
{{/if_eq}}
|
||
|
|
||
|
|
||
|
<br />
|
||
|
</form>
|
||
|
{{#if_eq available true}}
|
||
|
<form method="POST" action="@url/issues/nonrequestissue/" id="report{{id}}">
|
||
|
<input name="providerId" type="text" value="{{id}}" hidden="hidden" />
|
||
|
<input name="type" type="text" value="{{type}}" hidden="hidden" />
|
||
|
<div class="dropdown">
|
||
|
<button id="{{id}}" class="btn btn-sm btn-danger-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||
|
<i class="fa fa-exclamation"></i> @UI.Search_ReportIssue
|
||
|
<span class="caret"></span>
|
||
|
</button>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||
|
<li><a id="{{id}}" issue-select="0" class="dropdownIssue" href="#">@UI.Issues_WrongAudio</a></li>
|
||
|
<li><a id="{{id}}" issue-select="1" class="dropdownIssue" href="#">@UI.Issues_NoSubs</a></li>
|
||
|
<li><a id="{{id}}" issue-select="2" class="dropdownIssue" href="#">@UI.Issues_WrongContent</a></li>
|
||
|
<li><a id="{{id}}" issue-select="3" class="dropdownIssue" href="#">@UI.Issues_Playback</a></li>
|
||
|
<li><a id="{{id}}" issue-select="4" class="dropdownIssue" data-identifier="{{id}}" data-type="{{type}}" href="#" data-toggle="modal" data-target="#issuesModal">@UI.Issues_Other</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</form>
|
||
|
{{/if_eq}}
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-sm-12">
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<hr />
|
||
|
</script>
|
||
|
|
||
|
<!-- Movie and TV Results template -->
|
||
8 years ago
|
<script id="search-template" type="text/x-handlebars-template">
|
||
8 years ago
|
<div class="row">
|
||
|
<div id="{{id}}imgDiv" class="col-sm-2">
|
||
9 years ago
|
|
||
8 years ago
|
{{#if_eq type "movie"}}
|
||
|
{{#if posterPath}}
|
||
|
<img class="img-responsive" src="https://image.tmdb.org/t/p/w150/{{posterPath}}" alt="poster">
|
||
|
{{/if}}
|
||
|
{{/if_eq}}
|
||
|
{{#if_eq type "tv"}}
|
||
|
{{#if posterPath}}
|
||
8 years ago
|
<img class="img-responsive" width="150" src="{{posterPath}}" alt="poster">
|
||
8 years ago
|
{{/if}}
|
||
|
{{/if_eq}}
|
||
8 years ago
|
|
||
8 years ago
|
</div>
|
||
8 years ago
|
<div class="col-sm-8">
|
||
8 years ago
|
<div>
|
||
|
{{#if_eq type "movie"}}
|
||
|
<a href="https://www.themoviedb.org/movie/{{id}}/" target="_blank">
|
||
|
<h4>{{title}} ({{year}})</h4>
|
||
|
</a>
|
||
|
{{else}}
|
||
8 years ago
|
<h4>
|
||
|
<a href="http://www.imdb.com/title/{{imdb}}/" target="_blank">
|
||
|
{{title}} ({{year}})
|
||
8 years ago
|
|
||
8 years ago
|
</a>{{#if status}}<span class="label label-primary" style="font-size:60%" target="_blank">{{status}}</span>{{/if}}
|
||
|
</h4>
|
||
8 years ago
|
{{/if_eq}}
|
||
8 years ago
|
|
||
8 years ago
|
|
||
8 years ago
|
{{#if firstAired}}
|
||
8 years ago
|
<span class="label label-info" target="_blank">Air Date: {{firstAired}}</span>
|
||
|
{{/if}}
|
||
|
|
||
|
{{#if releaseDate}}
|
||
|
<span class="label label-info" target="_blank">Release Date: {{releaseDate}}</span>
|
||
8 years ago
|
{{/if}}
|
||
8 years ago
|
{{#if available}}
|
||
8 years ago
|
<span class="label label-success">@UI.Search_Available</span>
|
||
8 years ago
|
{{else}}
|
||
|
{{#if approved}}
|
||
|
<span class="label label-info">@UI.Search_Processing_Request</span>
|
||
|
{{else if requested}}
|
||
|
<span class="label label-warning">@UI.Search_Pending_approval</span>
|
||
|
{{else}}
|
||
|
<span class="label label-danger">@UI.Search_Not_Requested_Yet</span>
|
||
|
{{/if}}
|
||
|
{{/if}}
|
||
|
|
||
8 years ago
|
|
||
8 years ago
|
<span id="{{id}}netflixTab"></span>
|
||
8 years ago
|
|
||
8 years ago
|
{{#if homepage}}
|
||
|
<a href="{{homepage}}" target="_blank"><span class="label label-info">HomePage</span></a>
|
||
|
{{/if}}
|
||
|
{{#if trailer}}
|
||
|
<a href="{{trailer}}" target="_blank"><span class="label label-info">Trailer</span></a>
|
||
|
{{/if}}
|
||
8 years ago
|
|
||
|
<br />
|
||
|
<br />
|
||
|
</div>
|
||
8 years ago
|
<p style="font-size:0.9rem !important">{{overview}}</p>
|
||
8 years ago
|
</div>
|
||
8 years ago
|
<div class="col-sm-2">
|
||
8 years ago
|
<form method="POST" action="@url/search/request/{{type}}" id="form{{id}}">
|
||
|
<input name="{{type}}Id" type="text" value="{{id}}" hidden="hidden" />
|
||
|
{{#if_eq type "movie"}}
|
||
|
{{#if_eq available true}}
|
||
8 years ago
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Available</button>
|
||
8 years ago
|
{{#if url}}
|
||
8 years ago
|
<br />
|
||
|
<br />
|
||
|
<a style="text-align: right" class="btn btn-sm btn-primary-outline" href="{{url}}" target="_blank"><i class="fa fa-eye"></i> @UI.Search_ViewInPlex</a>
|
||
8 years ago
|
{{/if}}
|
||
8 years ago
|
{{else}}
|
||
8 years ago
|
{{#if_eq requested true}}
|
||
8 years ago
|
<button style="text-align: right" class="btn btn-primary-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Requested</button>
|
||
8 years ago
|
{{else}}
|
||
8 years ago
|
<button id="{{id}}" style="text-align: right" class="btn btn-primary-outline requestMovie" type="submit"><i class="fa fa-plus"></i> @UI.Search_Request</button>
|
||
|
{{/if_eq}}
|
||
|
{{/if_eq}}
|
||
8 years ago
|
{{/if_eq}}
|
||
|
|
||
8 years ago
|
{{#if_eq type "tv"}}
|
||
|
{{#if_eq tvFullyAvailable true}}
|
||
8 years ago
|
@*//TODO Not used yet*@
|
||
8 years ago
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Available</button><br />
|
||
8 years ago
|
{{else}}
|
||
8 years ago
|
{{#if_eq enableTvRequestsForOnlySeries true}}
|
||
8 years ago
|
<button id="{{id}}" style="text-align: right" class="btn {{#if available}}btn-success-outline{{else}}btn-primary-outline dropdownTv{{/if}} btn-primary-outline" season-select="0" type="button" {{#if available}}disabled{{/if}}><i class="fa fa-plus"></i> {{#if available}}@UI.Search_Available{{else}}@UI.Search_Request{{/if}}</button>
|
||
8 years ago
|
{{else}}
|
||
8 years ago
|
<div class="dropdown">
|
||
|
<button id="{{id}}" class="btn {{#if available}}btn-success-outline{{else}}btn-primary-outline{{/if}} dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||
|
<i class="fa fa-plus"></i> {{#if available}}@UI.Search_Available{{else}}@UI.Search_Request {{/if}}
|
||
|
<span class="caret"></span>
|
||
|
</button>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||
|
<li><a id="{{id}}" season-select="0" class="dropdownTv " href="#">@UI.Search_AllSeasons</a></li>
|
||
|
{{#if_eq disableTvRequestsBySeason false}}
|
||
|
<li><a id="{{id}}" season-select="1" class="dropdownTv" href="#">@UI.Search_FirstSeason</a></li>
|
||
|
<li><a id="{{id}}" season-select="2" class="dropdownTv" href="#">@UI.Search_LatestSeason</a></li>
|
||
|
<li><a id="SeasonSelect" data-identifier="{{id}}" data-toggle="modal" data-target="#seasonsModal" href="#">@UI.Search_SelectSeason...</a></li>
|
||
|
{{/if_eq}}
|
||
|
{{#if_eq disableTvRequestsByEpisode false}}
|
||
|
<li><a id="EpisodeSelect" data-identifier="{{id}}" data-toggle="modal" data-target="#episodesModal" href="#">@UI.Search_SelectEpisode...</a></li>
|
||
|
{{/if_eq}}
|
||
|
</ul>
|
||
|
</div>
|
||
|
{{/if_eq}}
|
||
|
{{#if available}}
|
||
8 years ago
|
{{#if url}}
|
||
8 years ago
|
<br />
|
||
|
<a style="text-align: right" class="btn btn-sm btn-primary-outline" href="{{url}}" target="_blank"><i class="fa fa-eye"></i> @UI.Search_ViewInPlex</a>
|
||
|
{{/if}}
|
||
8 years ago
|
{{/if}}
|
||
8 years ago
|
{{/if_eq}}
|
||
8 years ago
|
{{/if_eq}}
|
||
9 years ago
|
|
||
8 years ago
|
|
||
8 years ago
|
<br />
|
||
|
</form>
|
||
|
{{#if_eq available true}}
|
||
|
<form method="POST" action="@url/issues/nonrequestissue/" id="report{{id}}">
|
||
|
<input name="providerId" type="text" value="{{id}}" hidden="hidden" />
|
||
|
<input name="type" type="text" value="{{type}}" hidden="hidden" />
|
||
|
<div class="dropdown">
|
||
|
<button id="{{id}}" class="btn btn-sm btn-danger-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||
|
<i class="fa fa-exclamation"></i> @UI.Search_ReportIssue
|
||
|
<span class="caret"></span>
|
||
|
</button>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
||
|
<li><a id="{{id}}" issue-select="0" class="dropdownIssue" href="#">@UI.Issues_WrongAudio</a></li>
|
||
|
<li><a id="{{id}}" issue-select="1" class="dropdownIssue" href="#">@UI.Issues_NoSubs</a></li>
|
||
|
<li><a id="{{id}}" issue-select="2" class="dropdownIssue" href="#">@UI.Issues_WrongContent</a></li>
|
||
|
<li><a id="{{id}}" issue-select="3" class="dropdownIssue" href="#">@UI.Issues_Playback</a></li>
|
||
|
<li><a id="{{id}}" issue-select="4" class="dropdownIssue" data-identifier="{{id}}" data-type="{{type}}" href="#" data-toggle="modal" data-target="#issuesModal">@UI.Issues_Other</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</form>
|
||
|
{{/if_eq}}
|
||
9 years ago
|
</div>
|
||
|
|
||
8 years ago
|
</div>
|
||
|
<hr />
|
||
|
</script>
|
||
9 years ago
|
|
||
|
|
||
8 years ago
|
<!-- Music Results template -->
|
||
8 years ago
|
<script id="music-template" type="text/x-handlebars-template">
|
||
8 years ago
|
<div class="row">
|
||
|
<div id="{{id}}imageDiv" class="col-sm-2">
|
||
|
{{#if coverArtUrl}}
|
||
|
<img id="{{id}}cover" class="img-responsive" src="{{coverArtUrl}}" width="150" alt="poster">
|
||
|
{{/if}}
|
||
|
</div>
|
||
|
<div class="col-sm-5 ">
|
||
|
<div>
|
||
|
<a href="https://musicbrainz.org/release/{{id}}" target="_blank">
|
||
|
<h4>
|
||
|
{{artist}} - {{title}}
|
||
|
{{#if year}}
|
||
|
({{year}})
|
||
|
{{/if}}
|
||
|
</h4>
|
||
|
</a>
|
||
9 years ago
|
|
||
8 years ago
|
</div>
|
||
|
<p>{{overview}}</p>
|
||
|
</div>
|
||
|
<div class="col-sm-2 col-sm-push-3">
|
||
|
<form method="POST" action="@url/search/request/{{type}}" id="form{{id}}">
|
||
|
<input name="{{type}}Id" type="text" value="{{id}}" hidden="hidden" />
|
||
|
{{#if_eq available true}}
|
||
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Available</button><br />
|
||
8 years ago
|
{{#if url}}
|
||
8 years ago
|
<a style="text-align: right" class="btn btn-sm btn-primary-outline" href="{{url}}" target="_blank"><i class="fa fa-eye"></i> @UI.Search_ViewInPlex</a>
|
||
8 years ago
|
{{/if}}
|
||
8 years ago
|
{{else}}
|
||
|
{{#if_eq requested true}}
|
||
|
<button style="text-align: right" class="btn btn-success-outline disabled" disabled><i class="fa fa-check"></i> @UI.Search_Requested</button>
|
||
|
{{else}}
|
||
|
<button id="{{id}}" style="text-align: right" class="btn btn-primary-outline requestAlbum" type="submit"><i class="fa fa-plus"></i> @UI.Search_Request</button>
|
||
|
{{/if_eq}}
|
||
|
{{/if_eq}}
|
||
|
<br />
|
||
|
<small class="row">@UI.Search_TrackCount: {{trackCount}}</small>
|
||
|
<small class="row">@UI.Search_Country: {{country}}</small>
|
||
|
</form>
|
||
|
</div>
|
||
9 years ago
|
|
||
8 years ago
|
</div>
|
||
|
<hr />
|
||
9 years ago
|
|
||
8 years ago
|
</script>
|
||
9 years ago
|
|
||
8 years ago
|
<div class="modal fade" id="seasonsModal">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
|
<h4 class="modal-title">@UI.Search_Modal_SeasonsTitle</h4>
|
||
|
</div>
|
||
|
<div class="modal-body" id="seasonsBody">
|
||
9 years ago
|
|
||
8 years ago
|
</div>
|
||
9 years ago
|
|
||
8 years ago
|
<div hidden="hidden" id="selectedSeasonsId"></div>
|
||
|
<div class="modal-footer">
|
||
|
<button type="button" class="btn btn-default" data-dismiss="modal">@UI.Common_Close</button>
|
||
|
<button type="button" id="seasonsRequest" class="btn btn-primary">@UI.Search_Request</button>
|
||
|
</div>
|
||
|
</div>
|
||
9 years ago
|
</div>
|
||
|
</div>
|
||
8 years ago
|
|
||
8 years ago
|
<div class="modal fade" id="episodesModal">
|
||
|
<div class="modal-dialog modal-lg">
|
||
|
<div class="modal-content col-md-12">
|
||
|
<div class="modal-header">
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
|
<h4 class="modal-title">@UI.Search_Modal_SeasonsTitle</h4>
|
||
|
</div>
|
||
|
<div class="text-center" id="episodeModalLoading"><i class="fa fa-5x fa-spinner fa-spin"></i></div>
|
||
|
<div class="modal-body" id="episodesBody">
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div hidden="hidden" id="selectedEpisodeId"></div>
|
||
|
<div hidden="hidden" id="episodeTvID"></div>
|
||
|
<div class="modal-footer col-md-12">
|
||
|
<button type="button" class="btn btn-default btn-default-outline" data-dismiss="modal">@UI.Common_Close</button>
|
||
|
<button type="button" id="episodesRequest" class="btn btn-primary">@UI.Search_Request</button>
|
||
|
</div>
|
||
|
</div>
|
||
8 years ago
|
</div>
|
||
|
</div>
|
||
|
|
||
9 years ago
|
|
||
8 years ago
|
<div class="modal fade" id="issuesModal">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
|
||
|
<h4 class="modal-title">@UI.Issues_Modal_Title</h4>
|
||
|
</div>
|
||
|
<form method="POST" action="@url/issues/nonrequestissuecomment" id="commentForm">
|
||
|
<div class="modal-body">
|
||
|
<input id="providerIdModal" name="providerId" class="providerId" type="text" hidden="hidden" value="" />
|
||
|
<input name="issue" class="issue" type="text" hidden="hidden" value="" />
|
||
|
<input id="typeModal" name="type" class="type" type="text" hidden="hidden" value="" />
|
||
|
<textarea class="form-control form-control-custom" rows="3" id="commentArea" name="commentArea"></textarea>
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button type="button" class="btn btn-danger-outline" data-dismiss="modal">@UI.Common_Close</button>
|
||
|
<button type="button" class="btn btn-primary-outline theSaveButton" data-dismiss="modal">@UI.Issues_Modal_Save</button>
|
||
|
</div>
|
||
|
</form>
|
||
9 years ago
|
</div>
|
||
8 years ago
|
</div>
|
||
9 years ago
|
</div>
|
||
|
|
||
8 years ago
|
<script id="seasons-template" type="text/x-handlebars-template">
|
||
|
<div class="form-group">
|
||
|
<div class="checkbox">
|
||
|
<input type="checkbox" class="selectedSeasons" id="{{id}}" name="{{id}}"><label for="{{id}}">@UI.Search_Season {{id}}</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
</script>
|
||
8 years ago
|
|
||
8 years ago
|
<script id="seasonNumber-template" type="text/x-handlebars-template">
|
||
8 years ago
|
|
||
8 years ago
|
<div id="seasonNumber{{seasonNumber}}" class="col-md-12">
|
||
|
<strong>@UI.Search_Season {{seasonNumber}}</strong>
|
||
|
</div>
|
||
8 years ago
|
|
||
|
|
||
8 years ago
|
</script>
|
||
8 years ago
|
|
||
|
|
||
8 years ago
|
<script id="episode-template" type="text/x-handlebars-template">
|
||
|
<div class="form-group col-md-6">
|
||
|
<div class="checkbox" style="margin-bottom:0px; margin-top:0px;">
|
||
|
{{#if_eq requested true}}
|
||
|
<input type="checkbox" checked="checked" disabled="disabled" class="selectedEpisodes" id="{{episodeId}}" epNumber="{{number}}" epSeason="{{season}}" name="{{episodeId}}"><label for="{{episodeId}}">{{number}}. {{name}}</label>
|
||
|
{{else}}
|
||
|
<input type="checkbox" class="selectedEpisodes" id="{{episodeId}}" epNumber="{{number}}" epSeason="{{season}}" name="{{episodeId}}"><label for="{{episodeId}}">{{number}}. {{name}}</label>
|
||
|
{{/if_eq}}
|
||
|
</div>
|
||
|
</div>
|
||
9 years ago
|
|
||
8 years ago
|
</script>
|
||
9 years ago
|
|
||
8 years ago
|
@Html.LoadSearchAssets()
|
||
8 years ago
|
|