summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates
diff options
context:
space:
mode:
authorSimon Rettberg2016-08-17 18:07:35 +0200
committerSimon Rettberg2016-08-17 18:07:35 +0200
commitd867dec3d22ce5ea01c0189e05172a326ce15d5c (patch)
tree566b0c60e29692b96ca55ad877fd1ef29c9860b6 /modules-available/dozmod/templates
parentClean up css a bit (diff)
downloadslx-admin-d867dec3d22ce5ea01c0189e05172a326ce15d5c.tar.gz
slx-admin-d867dec3d22ce5ea01c0189e05172a326ce15d5c.tar.xz
slx-admin-d867dec3d22ce5ea01c0189e05172a326ce15d5c.zip
[dozmod] Add secret hidden block statistics
Diffstat (limited to 'modules-available/dozmod/templates')
-rw-r--r--modules-available/dozmod/templates/blockstats-details.html16
-rw-r--r--modules-available/dozmod/templates/blockstats.html33
2 files changed, 49 insertions, 0 deletions
diff --git a/modules-available/dozmod/templates/blockstats-details.html b/modules-available/dozmod/templates/blockstats-details.html
new file mode 100644
index 00000000..68e03fbc
--- /dev/null
+++ b/modules-available/dozmod/templates/blockstats-details.html
@@ -0,0 +1,16 @@
+<table class="table table-bordered table-striped">
+ <tr>
+ <th>{{lang_imageName}}</th>
+ <th>{{lang_createTime}}</th>
+ <th>{{lang_fileSize}}</th>
+ <th>{{lang_blockCount}}</th>
+ </tr>
+ {{#rows}}
+ <tr>
+ <td>{{displayname}}</td>
+ <td>{{createtime_s}}</td>
+ <td>{{filesize_s}}</td>
+ <td>{{blockcount}}</td>
+ </tr>
+ {{/rows}}
+</table> \ No newline at end of file
diff --git a/modules-available/dozmod/templates/blockstats.html b/modules-available/dozmod/templates/blockstats.html
new file mode 100644
index 00000000..82a66146
--- /dev/null
+++ b/modules-available/dozmod/templates/blockstats.html
@@ -0,0 +1,33 @@
+<table class="table table-condensed table-striped" style="width: auto">
+ <tr>
+ <th>{{lang_hash}}</th>
+ <th>{{lang_size}}</th>
+ <th>{{lang_count}}</th>
+ </tr>
+ {{#hashes}}
+ <tr>
+ <td>{{hash_hex}}</td>
+ <td>{{blocksize_s}}</td>
+ <td>{{blockcount}} <button class="btn btn-xs btn-default" onclick="slxLoadBlocks('{{hash_hex}}', '{{blocksize}}')"><span class="glyphicon glyphicon-eye-open"></span></button></td>
+ </tr>
+ {{/hashes}}
+</table>
+
+<div class="modal fade" id="block-details" tabindex="-1" role="dialog">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header"></div>
+ <div class="modal-body"></div>
+ <div class="modal-footer"><a class="btn btn-primary" data-dismiss="modal">{{lang_close}}</a></div>
+ </div>
+ </div>
+</div>
+
+<script type="application/javascript"><!--
+function slxLoadBlocks(hash, size) {
+ $('#block-details .modal-header').text(hash + '/' + size);
+ $('#block-details .modal-body').html('<div class="slx-rotation"><span class="glyphicon glyphicon-refresh"></span></div>');
+ $('#block-details').modal('show');
+ $('#block-details .modal-body').load('?do=dozmod&section=blockstats', { token: TOKEN, action: 'getblockinfo', hash: hash, size: size });
+}
+//--></script> \ No newline at end of file