diff options
author | Simon Rettberg | 2019-03-19 13:52:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-19 13:52:44 +0100 |
commit | cbb3d0f368347993b61fde2a49eecd66c2e56813 (patch) | |
tree | 42dd2b9e195ca588f25e79caa1b9639ad83bbb6d /modules-available/statistics/templates | |
parent | [roomplanner] Implement (auto)rotating SVG, make SVG pretty (diff) | |
download | slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.tar.gz slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.tar.xz slx-admin-cbb3d0f368347993b61fde2a49eecd66c2e56813.zip |
[statistics] Feature: BIOS update info
Fetch list of known BIOS updates that fix issues wrt.
bwLehrpool/OpenSLX/whatever it's called today.
Diffstat (limited to 'modules-available/statistics/templates')
-rw-r--r-- | modules-available/statistics/templates/machine-bios-update.html | 26 | ||||
-rw-r--r-- | modules-available/statistics/templates/machine-main.html | 16 |
2 files changed, 42 insertions, 0 deletions
diff --git a/modules-available/statistics/templates/machine-bios-update.html b/modules-available/statistics/templates/machine-bios-update.html new file mode 100644 index 00000000..2e8a8908 --- /dev/null +++ b/modules-available/statistics/templates/machine-bios-update.html @@ -0,0 +1,26 @@ +<div><span class="btn btn-{{class}} btn-sm" data-toggle="modal" data-target="#bios-modal"> + {{lang_biosUpdate}} » +</span></div> + +<div class="modal fade" id="bios-modal" tabindex="-1" role="dialog" aria-labelledby="bios-modal-label" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span + class="sr-only">Close</span></button> + <h4 class="modal-title" id="bios-modal-label">{{lang_biosFixes}}</h4> + </div> + <div class="modal-body"> + {{#fixes}} + <p><b>{{date}}{{revision}}</b>: {{text}}</p> + {{/fixes}} + <p> + <a href="{{url}}" target="_blank">{{lang_biosUpdateLink}}</a> + </p> + </div> + <div class="modal-footer text-right"> + <button type="button" class="btn btn-default" data-dismiss="modal">{{lang_close}}</button> + </div> + </div> + </div> +</div>
\ No newline at end of file diff --git a/modules-available/statistics/templates/machine-main.html b/modules-available/statistics/templates/machine-main.html index 8156f0aa..e040a6c5 100644 --- a/modules-available/statistics/templates/machine-main.html +++ b/modules-available/statistics/templates/machine-main.html @@ -127,6 +127,19 @@ <td class="text-nowrap">{{lang_model}}</td> <td>{{pcmodel}} ({{manufacturer}})</td> </tr> + {{#biosdate}} + <tr> + <td class="text-nowrap"> + <div>{{lang_biosVersion}}</div> + <div>{{lang_biosDate}}</div> + </td> + <td> + <div id="bios-panel" class="pull-right">{{{bioshtml}}}</div> + <div>{{biosversion}} (<b>{{biosrevision}}</b>)</div> + <div>{{biosdate}}</div> + </td> + </tr> + {{/biosdate}} <tr class="{{ramclass}}"> <td class="text-nowrap">{{lang_ram}}</td> <td> @@ -242,5 +255,8 @@ document.addEventListener("DOMContentLoaded", function () { $('span.do-lookup').each(function () { $(this).load('?do=statistics&lookup=' + $(this).text()); }); + {{#biosurl}} + $('#bios-panel').load('{{{biosurl}}}'); + {{/biosurl}} }, false); // --></script> |