mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
Merge remote-tracking branch 'upstream/dev'
This commit is contained in:
commit
cd2c9a40e5
283 changed files with 10998 additions and 1985 deletions
|
@ -26,6 +26,23 @@
|
|||
console.log(e);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
var gravatarUrl = createBaseUrl(base, 'layout/gravatar');
|
||||
$.ajax({
|
||||
url: gravatarUrl,
|
||||
success: function (result) {
|
||||
if (result.result) {
|
||||
$('#gravatarImg').html("<img src=\"" + result.message + "\" class=\"gravatar\" width=\"30\" height=\"30\" alt=\"\">");
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.log("error " + error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// End Check for update
|
||||
|
||||
checkCacheInProgress();
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
<li id="customDonate" style="display: none"><a id="customDonateHref" href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: yellow;"></i> <span id="donationText">@UI.Custom_Donation_Default</span></a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<a id="gravatarImg" class="navbar-brand" href="#">
|
||||
|
||||
</a>
|
||||
@if (Html.IsAdmin())
|
||||
{
|
||||
<li><a>@UI.Layout_Welcome @Context.CurrentUser.UserName</a></li>
|
||||
|
@ -77,7 +80,7 @@
|
|||
</li>
|
||||
|
||||
}
|
||||
else if (Html.IsPlexUser()) // Logged in but not admin
|
||||
else if (Html.IsExternalUser()) // Logged in but not admin
|
||||
{
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-user"></i> @UI.Layout_Welcome @Context.CurrentUser.UserName <span class="caret"></span></a>
|
||||
|
@ -101,19 +104,19 @@
|
|||
|
||||
<li class="dropdown">
|
||||
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-language" aria-hidden="true"><span class="caret"></span></i></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="@url/culture?l=en&u=@Context.Request.Path">@UI.Layout_English</a></li>
|
||||
<li><a href="@url/culture?l=fr&u=@Context.Request.Path">@UI.Layout_French</a></li>
|
||||
<li><a href="@url/culture?l=nl&u=@Context.Request.Path">@UI.Layout_Dutch</a></li>
|
||||
<li><a href="@url/culture?l=es&u=@Context.Request.Path">@UI.Layout_Spanish</a></li>
|
||||
<li><a href="@url/culture?l=de&u=@Context.Request.Path">@UI.Layout_German</a></li>
|
||||
<li><a href="@url/culture?l=da&u=@Context.Request.Path">@UI.Layout_Danish</a></li>
|
||||
<li><a href="@url/culture?l=pt&u=@Context.Request.Path">@UI.Layout_Portuguese</a></li>
|
||||
<li><a href="@url/culture?l=sv&u=@Context.Request.Path">@UI.Layout_Swedish</a></li>
|
||||
<li><a href="@url/culture?l=it&u=@Context.Request.Path">@UI.Layout_Italian</a></li>
|
||||
</ul>
|
||||
<li />
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-language" aria-hidden="true"><span class="caret"></span></i></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="@url/culture?l=en&u=@Context.Request.Path">@UI.Layout_English</a></li>
|
||||
<li><a href="@url/culture?l=fr&u=@Context.Request.Path">@UI.Layout_French</a></li>
|
||||
<li><a href="@url/culture?l=nl&u=@Context.Request.Path">@UI.Layout_Dutch</a></li>
|
||||
<li><a href="@url/culture?l=es&u=@Context.Request.Path">@UI.Layout_Spanish</a></li>
|
||||
<li><a href="@url/culture?l=de&u=@Context.Request.Path">@UI.Layout_German</a></li>
|
||||
<li><a href="@url/culture?l=da&u=@Context.Request.Path">@UI.Layout_Danish</a></li>
|
||||
<li><a href="@url/culture?l=pt&u=@Context.Request.Path">@UI.Layout_Portuguese</a></li>
|
||||
<li><a href="@url/culture?l=sv&u=@Context.Request.Path">@UI.Layout_Swedish</a></li>
|
||||
<li><a href="@url/culture?l=it&u=@Context.Request.Path">@UI.Layout_Italian</a></li>
|
||||
</ul>
|
||||
<li/>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -129,7 +132,7 @@
|
|||
var donationText = $("#donationText");
|
||||
donateLink.attr("href", result.url);
|
||||
if (result.message) {
|
||||
donationText.text(result.message);
|
||||
donationText.text(result.message);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -138,6 +141,8 @@
|
|||
$("#customDonate").hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
<div id="updateAvailable" hidden="hidden"></div>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
@Html.GetSidebarUrl(Context, "/admin/authentication", "Authentication", "glyphicon glyphicon-lock")
|
||||
@Html.GetSidebarUrl(Context, "/admin/usermanagementsettings", "User Management Settings", "glyphicon glyphicon-user")
|
||||
@Html.GetSidebarUrl(Context, "/admin/plex", "Plex", "glyphicon glyphicon-play-circle")
|
||||
@Html.GetSidebarUrl(Context, "/admin/emby", "Emby", "glyphicon glyphicon-play-circle")
|
||||
@Html.GetSidebarUrl(Context, "/admin/couchpotato", "CouchPotato", "glyphicon glyphicon-film")
|
||||
@Html.GetSidebarUrl(Context, "/admin/watcher", "Watcher (beta)", "glyphicon glyphicon-film")
|
||||
@Html.GetSidebarUrl(Context, "/admin/radarr", "Radarr (beta)", "glyphicon glyphicon-film")
|
||||
|
@ -16,6 +17,7 @@
|
|||
@Html.GetSidebarUrl(Context, "/admin/sickrage", "SickRage", "fa fa-tv")
|
||||
@Html.GetSidebarUrl(Context, "/admin/headphones", "Headphones (beta)", "glyphicon glyphicon-headphones")
|
||||
@Html.GetSidebarUrl(Context, "/admin/newsletter", "Newsletter Settings", "fa fa-newspaper-o")
|
||||
@Html.GetSidebarUrl(Context, "/admin/massemail", "Mass Email", "fa fa-reply-all")
|
||||
<div id="sidebar" >
|
||||
|
||||
<a href="#notifications" class="list-group-item" data-parent="#sidebar">
|
||||
|
@ -39,7 +41,7 @@
|
|||
|
||||
|
||||
@Html.GetSidebarUrl(Context, "/admin/logs", "Logs", "fa fa-edit")
|
||||
@Html.GetSidebarUrl(Context, "/admin/status", "Status", "fa fa-dashboard")
|
||||
@Html.GetSidebarUrl(Context, "/admin/status", "Updates", "fa fa-dashboard")
|
||||
@Html.GetSidebarUrl(Context, "/admin/scheduledjobs", "Scheduled Jobs", "fa fa-hand-spock-o")
|
||||
@Html.GetSidebarUrl(Context, "/admin/faultqueue", "Request Fault Queue", "fa fa-history")
|
||||
</div>
|
||||
|
@ -48,8 +50,12 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$('#sidebar > a').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('.customTooltip').tooltipster({
|
||||
contentCloning: true
|
||||
});
|
||||
|
||||
if (!$(this).hasClass("active")) {
|
||||
var lastActive = $(this).closest("#sidebar").children(".active");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue