- Implemented autoupdater for testing
- failed logins are logged - no of backups for log-file increased to 2
This commit is contained in:
@@ -78,6 +78,8 @@
|
||||
{% if not development %}
|
||||
<div class="btn btn-default" data-toggle="modal" data-target="#RestartDialog">{{_('Restart Calibre-web')}}</a></div>
|
||||
<div class="btn btn-default" data-toggle="modal" data-target="#ShutdownDialog">{{_('Stop Calibre-web')}}</a></div>
|
||||
<div class="btn btn-default" id="check_for_update">{{_('Check for update')}}</a></div>
|
||||
<a href="{{url_for('update')}}" class="btn btn-default hidden" id="perform_update">{{_('Perform Update')}}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
@@ -134,5 +136,19 @@
|
||||
return alert(data.text);}
|
||||
});
|
||||
});
|
||||
$("#check_for_update").click(function() {
|
||||
$("#check_for_update").html('Checking...');
|
||||
$.ajax({
|
||||
dataType: 'json',
|
||||
url: "{{url_for('get_update_status')}}",
|
||||
success: function(data) {
|
||||
if (data.status == true) {
|
||||
$("#check_for_update").addClass('hidden');
|
||||
$("#perform_update").removeClass('hidden');
|
||||
}else{
|
||||
$("#check_for_update").html('{{_('Check for update')}}');
|
||||
};}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user