mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Slight changes, moved the donate button
This commit is contained in:
parent
752915ea0a
commit
0b1edcc488
2 changed files with 159 additions and 161 deletions
|
@ -88,11 +88,7 @@ namespace PlexRequests.Services.Jobs
|
||||||
{
|
{
|
||||||
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
||||||
var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast<int>().ToArray();
|
var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast<int>().ToArray();
|
||||||
if (items == null)
|
return items ?? new int[] { };
|
||||||
{
|
|
||||||
return new int[] { };
|
|
||||||
}
|
|
||||||
return items;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Execute(IJobExecutionContext context)
|
public void Execute(IJobExecutionContext context)
|
||||||
|
|
|
@ -40,7 +40,10 @@
|
||||||
@Html.GetNavbarUrl(Context, "/search", "Search", "search")
|
@Html.GetNavbarUrl(Context, "/search", "Search", "search")
|
||||||
@Html.GetNavbarUrl(Context, "/requests", "Requests", "plus-circle")
|
@Html.GetNavbarUrl(Context, "/requests", "Requests", "plus-circle")
|
||||||
@Html.GetNavbarUrl(Context, "/issues", "Issues", "exclamation", "<span id=\"issueCount\"></span>")
|
@Html.GetNavbarUrl(Context, "/issues", "Issues", "exclamation", "<span id=\"issueCount\"></span>")
|
||||||
|
@if (Context.CurrentUser.IsAuthenticated()) // TODO replace with IsAdmin
|
||||||
|
{
|
||||||
|
<li><a href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: red"></i> Donate</a></li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
|
||||||
|
@ -57,8 +60,7 @@
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
<li><a href="@url/admin"><i class="fa fa-cog"></i> Settings</a></li>
|
<li><a href="@url/admin"><i class="fa fa-cog"></i> Settings</a></li>
|
||||||
<li><a href="@url/changepassword"><i class="fa fa-key"></i> Change password</a></li>
|
<li><a href="@url/changepassword"><i class="fa fa-key"></i> Change password</a></li>
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color:red"></i> Donate!</a></li>
|
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="@url/logout"><i class="fa fa-sign-out"></i> Logout</a></li>
|
<li><a href="@url/logout"><i class="fa fa-sign-out"></i> Logout</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -133,7 +135,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response) {
|
if (response) {
|
||||||
if(response > 0)
|
if (response > 0)
|
||||||
$('#issueCount').addClass("badge");
|
$('#issueCount').addClass("badge");
|
||||||
$('#issueCount').html(+response);
|
$('#issueCount').html(+response);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue