mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
styling for #298 done, just need to wire up the model and do the actual status check
This commit is contained in:
parent
9f74d31f1d
commit
46f7a0769e
14 changed files with 180 additions and 23 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
|
||||
@if (Model.Enabled)
|
||||
{
|
||||
<input type="checkbox" id="Enabled" name="Enabled" checked="checked"><label for="Enabled">Enabled</label>
|
||||
|
@ -21,6 +20,19 @@
|
|||
</div>
|
||||
<small>If enabled then all users will be redirected to the landing page instead of the login page.</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
@if (Model.BeforeLogin)
|
||||
{
|
||||
<input type="checkbox" id="BeforeLogin" name="BeforeLogin" checked="checked"><label for="BeforeLogin">Show before the login</label>
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" id="BeforeLogin" name="BeforeLogin"><label for="BeforeLogin">Show before the login</label>
|
||||
}
|
||||
</div>
|
||||
<small>If enabled then this will show the landing page before the login page, if this is disabled the user will log in first and then see the landing page.</small>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -1,3 +1,41 @@
|
|||
@inherits PlexRequests.UI.Helpers.EmptyViewBase<PlexRequests.Core.SettingModels.LandingPageSettings>
|
||||
|
||||
@inherits PlexRequests.UI.Helpers.EmptyViewBase<PlexRequests.UI.Models.LandingPageViewModel>
|
||||
|
||||
|
||||
<img class="center" src="~/Content/images/logo.png" width="300" />
|
||||
|
||||
<div id="area" class="landing-block">
|
||||
@if (Model.NoticeEnable)
|
||||
{
|
||||
<div class="row" style="padding-top: 20px">
|
||||
<div class="col-md-1 col-md-push-4">
|
||||
<i class="fa fa-bell fa-5x"></i>
|
||||
</div>
|
||||
<div class="col-md-5 col-md-push-4">
|
||||
<span class="landing-title">Notice</span>
|
||||
<br/>
|
||||
@Model.NoticeMessage
|
||||
<br/>
|
||||
<strong>6/27/2016 @@ 9:00PM CST to 6/27/2016 @@ 9:00PM CST</strong>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-md-1 col-md-push-4">
|
||||
<i class="fa fa-check-circle fa-5x"></i>
|
||||
</div>
|
||||
<div class="col-md-5 col-md-push-4">
|
||||
<span class="landing-title">Currently Online</span>
|
||||
<br/>
|
||||
The Plex server is currently online (check this page for continuous status updates)
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<a href="@Model.ContinueUrl?landing=false" class="btn btn-success-outline">Continue</a>
|
||||
</div>
|
|
@ -23,9 +23,8 @@
|
|||
<body>
|
||||
|
||||
|
||||
<div class="container">
|
||||
@RenderBody()
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
console.log(response);
|
||||
if (response.result === true) {
|
||||
|
||||
window.location.replace(url);
|
||||
location.replace(response.message);
|
||||
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue