Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
bac71165
Commit
bac71165
authored
Aug 05, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firmware: rework header, add reboot notice; fixes #304
parent
d7179953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
20 deletions
+13
-20
firmware.volt
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
+13
-20
No files found.
src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
View file @
bac71165
...
...
@@ -36,20 +36,24 @@ POSSIBILITY OF SUCH DAMAGE.
$('#updatelist').empty();
$('#maintabs li:eq(1) a').tab('show');
$("#checkupdate_progress").addClass("fa fa-spinner fa-pulse");
$('#update
status').attr('class', 'tex
t-info');
$('#update
box').attr('class', 'alert aler
t-info');
$('#updatestatus').html("{{ lang._('Updating.... (may take up to 30 seconds)') }}");
// request status
ajaxGet('/api/core/firmware/status',{},function(data,status){
// update UI
if (data['status'] == 'unknown') {
$('#update
status').attr('class', 'tex
t-warning');
$('#update
box').attr('class', 'alert aler
t-warning');
} else if (data['status'] == 'error') {
$('#update
status').attr('class', 'tex
t-danger');
$('#update
box').attr('class', 'alert aler
t-danger');
} else if (data['status'] == 'none' || data['status'] == 'ok') {
$('#updates
tatus').attr('class', 'tex
t-info');
$('#updates
box').attr('class', 'alert aler
t-info');
}
$('#updatestatus').html(data['status_msg']);
status_msg = data['status_msg'];
if (data['upgrade_needs_reboot'] == "1") {
status_msg = status_msg + " This update requires a reboot.";
}
$('#updatestatus').html(status_msg);
$("#checkupdate_progress").removeClass("fa fa-spinner fa-pulse");
if (data['status'] == "ok") {
...
...
@@ -208,21 +212,10 @@ POSSIBILITY OF SUCH DAMAGE.
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<strong>{{ lang._('Current Firmware Status :')}}</strong>
<br/>
<span class="text-info" id="updatestatus">{{ lang._('Current status is unknown')}} </span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<button class='btn btn-primary' id="checkupdate"><i id="checkupdate_progress" class=""></i> {{ lang._('Click to check now')}}</button>
<button class='btn btn-primary' id="upgrade" style="display:none"><i id="upgrade_progress" class=""></i> {{ lang._('Upgrade') }} </button>
</div>
</div>
<div class="row">
<div class="col-md-12">
<br/>
<div class="alert alert-info" role="alert" style="min-height: 65px;" id="updatebox">
<button class='btn btn-primary pull-right' id="upgrade" style="display:none"><i id="upgrade_progress" class=""></i> {{ lang._('Upgrade now') }} </button>
<button class='btn btn-default pull-right' style="vertical-align: middle;" id="checkupdate"><i id="checkupdate_progress" class=""></i> {{ lang._('Fetch updates')}}</button>
<strong><div style="margin-top: 8px;" id="updatestatus">{{ lang._('Click to check for updates')}}</div></strong>
</div>
</div>
<div class="row">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment