mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Done #627
This commit is contained in:
parent
7fc26df599
commit
ea52fa3dc3
24 changed files with 419 additions and 32 deletions
|
@ -3,22 +3,32 @@
|
|||
|
||||
<div class="col-sm-8 col-sm-push-1">
|
||||
|
||||
|
||||
<table class="table table-striped table-hover table-responsive table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Job Name</td>
|
||||
<td>Last Run</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var record in Model.JobRecorder)
|
||||
{
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
@record.Key
|
||||
</td>
|
||||
<td>
|
||||
@record.Value.ToString("R")
|
||||
</td>
|
||||
<td class="refresh" id="@record.Key"><i class="fa fa-refresh"></i></td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4"><strong>Job Name</strong>
|
||||
</div>
|
||||
<div class="col-md-6 col-md-push-3"><strong>Last Run</strong>
|
||||
</div>
|
||||
</div>
|
||||
<hr style="margin-top: 4px; margin-bottom: 4px"/>
|
||||
@foreach (var record in Model.JobRecorder)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-md-4">@record.Key</div>
|
||||
<div class="col-md-5 col-md-push-3 date">@record.Value.ToString("R")</div>
|
||||
</div>
|
||||
<hr style="margin-top: 4px; margin-bottom: 4px"/>
|
||||
}
|
||||
<br/>
|
||||
<br/>
|
||||
<form class="form-horizontal" method="POST" id="mainForm">
|
||||
|
@ -122,6 +132,34 @@
|
|||
$obj.text(newDate);
|
||||
});
|
||||
|
||||
|
||||
$('.refresh').click(function(e) {
|
||||
var id = e.currentTarget.id;
|
||||
|
||||
var ev = $(e.currentTarget.children[0]);
|
||||
ev.addClass("fa-spin");
|
||||
|
||||
var url = createBaseUrl("/admin/schedulerun");
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
data: {key:id},
|
||||
url: url,
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
if (response.result === true) {
|
||||
generateNotify("Success!", "success");
|
||||
} else {
|
||||
generateNotify(response.message, "warning");
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e);
|
||||
generateNotify("Something went wrong!", "danger");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('#save')
|
||||
.click(function (e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue