summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-05 20:41:32 +0200
committerSimon Rettberg2014-06-05 20:41:32 +0200
commitda5ae919f868d1da90548d7cbafec55a06d2a62b (patch)
tree9af9d1933f03c518875d672cdc1ac87dd13273ad /templates
parentAdd functions to add script includes to the beginning or end of the document ... (diff)
downloadslx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.tar.gz
slx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.tar.xz
slx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.zip
Started "System Status" page
Diffstat (limited to 'templates')
-rw-r--r--templates/main-menu.html1
-rw-r--r--templates/systemstatus/_page.html13
-rw-r--r--templates/systemstatus/diskstat.html50
3 files changed, 64 insertions, 0 deletions
diff --git a/templates/main-menu.html b/templates/main-menu.html
index 50fdd211..06c3ed6b 100644
--- a/templates/main-menu.html
+++ b/templates/main-menu.html
@@ -27,6 +27,7 @@
</ul>
</li>
<li><a href="?do=News">News</a></li>
+ <li><a href="?do=SystemStatus">Status</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
{{{loginPanel}}}
diff --git a/templates/systemstatus/_page.html b/templates/systemstatus/_page.html
new file mode 100644
index 00000000..5b1ab375
--- /dev/null
+++ b/templates/systemstatus/_page.html
@@ -0,0 +1,13 @@
+<div class="container">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ Speicherplatz
+ </div>
+ <div class="panel-body" id="diskstat">
+ *dreh dreh dreh dreh*
+ </div>
+ </div>
+</div>
+<script type="text/javascript">
+ loadContent('#diskstat', '?do=SystemStatus&action=DiskStat');
+</script>
diff --git a/templates/systemstatus/diskstat.html b/templates/systemstatus/diskstat.html
new file mode 100644
index 00000000..e1d4a57e
--- /dev/null
+++ b/templates/systemstatus/diskstat.html
@@ -0,0 +1,50 @@
+<div class="slx-storechart">
+ {{#system}}
+ <b>Systempartition</b>
+ <div id="circles-system"></div>
+ Kapazität: {{size}}
+ {{/system}}
+ {{^system}}
+ <b>Fehler beim Ermitteln des verfügbaren Speichers auf der Systempartition!</b>
+ {{/system}}
+</div>
+<div class="slx-storechart">
+ {{#store}}
+ <b>VM-Speicher</b>
+ <div id="circles-store"></div>
+ Kapazität: {{size}}
+ {{/store}}
+ {{^store}}
+ <b>Fehler beim Ermitteln des verfügbaren Speicherplatzes am VM-Speicherort. Bitte überprüfen Sie die Konfiguration.</b>
+ {{/store}}
+</div>
+<script type="text/javascript">
+ {{#store}}
+ Circles.create({
+ id: 'circles-store',
+ radius: 60,
+ value: {{{percent}}},
+ maxValue: 100,
+ width: 10,
+ text: function(value){return value + '%'; },
+ colors: ['#D3B6C6', '#{{color}}'],
+ duration: 400,
+ wrpClass: 'circles-wrp',
+ textClass: 'circles-text'
+ });
+ {{/store}}
+ {{#system}}
+ Circles.create({
+ id: 'circles-system',
+ radius: 60,
+ value: {{{percent}}},
+ maxValue: 100,
+ width: 10,
+ text: function(value){return value + '%'; },
+ colors: ['#D3B6C6', '#{{color}}'],
+ duration: 400,
+ wrpClass: 'circles-wrp',
+ textClass: 'circles-text'
+ });
+ {{/system}}
+</script> \ No newline at end of file