summaryrefslogtreecommitdiff
path: root/app/views/debug.html
diff options
context:
space:
mode:
authorHorus_Arch2015-02-14 23:11:57 +0100
committerHorus_Arch2015-02-14 23:11:57 +0100
commit2f9fe2cfad83416647beed9c3c9085d686c43b09 (patch)
treefce1e043672f94cf42f8197079ce6fb3017dade0 /app/views/debug.html
downloadfreemail-2f9fe2cfad83416647beed9c3c9085d686c43b09.tar.gz
Initial commit.
Diffstat (limited to 'app/views/debug.html')
-rw-r--r--app/views/debug.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/app/views/debug.html b/app/views/debug.html
new file mode 100644
index 0000000..f3975b7
--- /dev/null
+++ b/app/views/debug.html
@@ -0,0 +1,64 @@
+<style type="text/css">
+ #sidebar {
+ position: absolute;
+ right: 0px;
+ top:69px;
+ max-width: 75%;
+ z-index: 1000;
+ background-color: #fee;
+ border: thin solid grey;
+ padding: 10px;
+ }
+ #toggleSidebar {
+ position: absolute;
+ right: 0px;
+ top: 50px;
+ background-color: #fee;
+ }
+
+</style>
+<div id="sidebar" style="display:none;">
+ <h4>Available pipelines</h4>
+ <dl>
+ {{ range $index, $value := .}}
+ <dt>{{$index}}</dt>
+ <dd>{{$value}}</dd>
+ {{end}}
+ </dl>
+ <h4>Flash</h4>
+ <dl>
+ {{ range $index, $value := .flash}}
+ <dt>{{$index}}</dt>
+ <dd>{{$value}}</dd>
+ {{end}}
+ </dl>
+
+ <h4>Errors</h4>
+ <dl>
+ {{ range $index, $value := .errors}}
+ <dt>{{$index}}</dt>
+ <dd>{{$value}}</dd>
+ {{end}}
+ </dl>
+</div>
+<a id="toggleSidebar" href="#" class="toggles"><i class="icon-chevron-left"></i></a>
+
+<script>
+ $sidebar = 0;
+ $('#toggleSidebar').click(function() {
+ if ($sidebar === 1) {
+ $('#sidebar').hide();
+ $('#toggleSidebar i').addClass('icon-chevron-left');
+ $('#toggleSidebar i').removeClass('icon-chevron-right');
+ $sidebar = 0;
+ }
+ else {
+ $('#sidebar').show();
+ $('#toggleSidebar i').addClass('icon-chevron-right');
+ $('#toggleSidebar i').removeClass('icon-chevron-left');
+ $sidebar = 1;
+ }
+
+ return false;
+ });
+</script>