|
|
@ -16,7 +16,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@if (Model.SearchForMusic)
|
|
|
|
@if (Model.SearchForMusic)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
<li role="presentation"><a href="#MusicTab" aria-controls="profile" role="tab" data-toggle="tab">Music</a></li>
|
|
|
|
<li role="presentation"><a href="#MusicTab" aria-controls="profile" role="tab" data-toggle="tab">Albums</a></li>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
@ -233,6 +233,119 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script id="album-template" type="text/x-handlebars-template">
|
|
|
|
|
|
|
|
<div id="{{requestId}}Template" class="mix available-{{available}} approved-{{approved}}" data-requestorder="{{requestedDateTicks}}" data-releaseorder="{{releaseDateTicks}}">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col-sm-2">
|
|
|
|
|
|
|
|
{{#if coverArtUrl}}
|
|
|
|
|
|
|
|
<img 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>
|
|
|
|
|
|
|
|
<span class="label label-success">{{status}}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<div>Release Date: {{releaseDate}}</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
Approved:
|
|
|
|
|
|
|
|
{{#if_eq approved false}}
|
|
|
|
|
|
|
|
<i id="{{requestId}}notapproved" class="fa fa-times"></i>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
{{#if_eq approved true}}
|
|
|
|
|
|
|
|
<i class="fa fa-check"></i>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
Available
|
|
|
|
|
|
|
|
{{#if_eq available false}}
|
|
|
|
|
|
|
|
<i id="availableIcon{{requestId}}" class="fa fa-times"></i>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
{{#if_eq available true}}
|
|
|
|
|
|
|
|
<i id="availableIcon{{requestId}}" class="fa fa-check"></i>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if requestedUsers}}
|
|
|
|
|
|
|
|
<div>Requested By: {{requestedUsers}}</div>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div>Requested Date: {{requestedDate}}</div>
|
|
|
|
|
|
|
|
<div id="issueArea{{requestId}}">
|
|
|
|
|
|
|
|
{{#if otherMessage}}
|
|
|
|
|
|
|
|
<div>Message: {{otherMessage}}</div>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<div>Issue: {{issues}}</div>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="adminNotesArea{{requestId}}">
|
|
|
|
|
|
|
|
{{#if adminNote}}
|
|
|
|
|
|
|
|
<div>Note from Admin: {{adminNote}}</div>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-2 col-sm-push-3">
|
|
|
|
|
|
|
|
{{#if_eq admin true}}
|
|
|
|
|
|
|
|
{{#if_eq approved false}}
|
|
|
|
|
|
|
|
<form method="POST" action="/approval/approve" id="approve{{requestId}}">
|
|
|
|
|
|
|
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
|
|
|
|
|
|
|
<button id="{{requestId}}" custom-button="{{requestId}}" style="text-align: right" class="btn btn-sm btn-success-outline approve" type="submit"><i class="fa fa-plus"></i> Approve</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
<form method="POST" action="/requests/delete" id="delete{{requestId}}">
|
|
|
|
|
|
|
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
|
|
|
|
|
|
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-danger-outline delete" type="submit"><i class="fa fa-minus"></i> Remove</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form method="POST" action="/requests/clearissues" id="clear{{requestId}}">
|
|
|
|
|
|
|
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
|
|
|
|
|
|
|
<button id="{{requestId}}" style="text-align: right" class="btn btn-sm btn-info-outline clear" type="submit"><i class="fa fa-check"></i> Clear Issues</button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form method="POST" action="/requests/changeavailability" id="change{{requestId}}">
|
|
|
|
|
|
|
|
<input name="Id" type="text" value="{{requestId}}" hidden="hidden" />
|
|
|
|
|
|
|
|
{{#if_eq available true}}
|
|
|
|
|
|
|
|
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="false" class="btn btn-sm btn-info-outline change" type="submit"><i class="fa fa-minus"></i> Mark Unavailable</button>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<button id="{{requestId}}" custom-availibility="{{requestId}}" style="text-align: right" value="true" class="btn btn-sm btn-success-outline change" type="submit"><i class="fa fa-plus"></i> Mark Available</button>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form method="POST" action="/requests/reportissue/" id="report{{requestId}}">
|
|
|
|
|
|
|
|
<input name="requestId" type="text" value="{{requestId}}" hidden="hidden" />
|
|
|
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
|
|
|
<button id="{{requestId}}" class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
|
|
|
|
|
|
<i class="fa fa-plus"></i> Report Issue
|
|
|
|
|
|
|
|
<span class="caret"></span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="0" class="dropdownIssue" href="#">Wrong Audio</a></li>
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="1" class="dropdownIssue" href="#">No Subtitles</a></li>
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="2" class="dropdownIssue" href="#">Wrong Content</a></li>
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="3" class="dropdownIssue" href="#">Playback Issues</a></li>
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="4" class="dropdownIssue" data-identifier="{{requestId}}" href="#" data-toggle="modal" data-target="#myModal">Other</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{#if_eq admin true}}
|
|
|
|
|
|
|
|
<li><a id="{{requestId}}" issue-select="4" class="note" data-identifier="{{requestId}}" href="#" data-toggle="modal" data-target="#noteModal">Add Note</a></li>
|
|
|
|
|
|
|
|
{{/if_eq}}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="myModal">
|
|
|
|
<div class="modal fade" id="myModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-content">
|
|
|
|