Merge pull request #1189 from cachethq/update-system

Update check system
This commit is contained in:
Joe Cohen
2015-12-01 02:22:11 -06:00
12 changed files with 163 additions and 18 deletions
+13
View File
@@ -363,6 +363,19 @@ $(function() {
// Password strength
$('.password-strength').strengthify();
// Check for updates.
if ($('#update-alert').length > 0) {
$.ajax({
async: true,
dataType: 'json',
url: '/dashboard/api/system/version',
}).done(function (result) {
if (result.is_latest == false) {
$('#update-alert').removeClass('hidden');
}
});
}
});
function askConfirmation(callback) {
+4
View File
@@ -106,6 +106,10 @@ return [
'failure' => 'Something went wrong with the signup.',
],
'system' => [
'update' => 'There is a newer version of Cachet available. You can learn how to update <a href="https://docs.cachethq.io/docs/updating-cachet">here</a>!',
],
// Other
'powered_by' => ':app Status Page is powered by <a href="https://cachethq.io" class="links">Cachet</a>.',
'about_this_site' => 'About This Site',
@@ -10,6 +10,11 @@
</span>
</div>
<div class="content-wrapper">
<div class="row">
<div class="col-md-12">
<div class="alert alert-info hidden" id="update-alert">{!! trans('cachet.system.update') !!}</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4 class="sub-header">{{ trans('dashboard.components.component_statuses') }}</h4>