summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates/machine-bios-update.html
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-19 14:31:33 +0100
committerSimon Rettberg2019-03-19 14:31:33 +0100
commit7d839511c1d51cd31a7a6025839d400c43dd0d3c (patch)
tree33b8156b44e536b47f8764287564d80b4f636552 /modules-available/statistics/templates/machine-bios-update.html
parent[statistics] Feature: BIOS update info (diff)
downloadslx-admin-7d839511c1d51cd31a7a6025839d400c43dd0d3c.tar.gz
slx-admin-7d839511c1d51cd31a7a6025839d400c43dd0d3c.tar.xz
slx-admin-7d839511c1d51cd31a7a6025839d400c43dd0d3c.zip
[statistics] Show error message if BIOS info fetching fails
Diffstat (limited to 'modules-available/statistics/templates/machine-bios-update.html')
-rw-r--r--modules-available/statistics/templates/machine-bios-update.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/statistics/templates/machine-bios-update.html b/modules-available/statistics/templates/machine-bios-update.html
index 2e8a8908..96e64850 100644
--- a/modules-available/statistics/templates/machine-bios-update.html
+++ b/modules-available/statistics/templates/machine-bios-update.html
@@ -1,3 +1,7 @@
+{{#error}}
+ <div class="warn" style="white-space: normal"><b>{{lang_biosUpdate}}</b>: {{error}}</div>
+{{/error}}
+{{^error}}
<div><span class="btn btn-{{class}} btn-sm" data-toggle="modal" data-target="#bios-modal">
{{lang_biosUpdate}} &raquo;
</span></div>
@@ -23,4 +27,5 @@
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>
+{{/error}} \ No newline at end of file