This commit is contained in:
Jamie.Rees 2017-03-13 09:05:33 +00:00
commit 83bb86de06
9 changed files with 61 additions and 87 deletions

View file

@ -19,7 +19,7 @@
<label class="control-label">@Model.Status.NewVersion</label>
</div>
}
<hr/>
<form id="mainForm" method="post" action="save">
<div class="form-group">
@ -42,15 +42,16 @@
</div>
<button id="saveSettings" class="btn btn-success-outline">Save</button>
</form>
<hr/>
<div class="form-group">
<label class="control-label">Update Available: </label>
@if (Model.Status.UpdateAvailable)
{
<label class="control-label"><a href="@Model.Status.UpdateUri" target="_blank"><i class="fa fa-check"></i></a></label>
<label class="control-label"><a href="@Model.Status.UpdateUri" target="_blank"><i class="fa fa-check"></i></a> @Html.ToolTip("Click the 'tick' to manually go to the page")</label>
<br />
<input id="args" class="form-control form-control-custom " placeholder="optional launch arguments e.g. /etc/mono /opt/PlexRequests.exe">
<br />
<label class="control-label">Launch Arguments</label> @Html.ToolTip("This is if you run Ombi outside of a regular install e.g. you are launching with a custom port. This field will be used after we have updated to launch the application.")
<input id="args" class="form-control form-control-custom " placeholder="/etc/mono /opt/Ombi.exe">
<br/>
<button id="autoUpdate" class="btn btn-success-outline">Automatic Update (beta) <i class="fa fa-download"></i></button>
}
@ -60,7 +61,7 @@
}
</div>
<hr/>
@if (Model.Status.UpdateAvailable)
{
<h2>
@ -76,7 +77,9 @@
</div>
<script>
$('.customTooltip').tooltipster({
contentCloning: true
});
var base = '@Html.GetBaseUrl()';
$('#autoUpdate')
.click(function (e) {