changeset 31:a43fa30655e9

better alignment of the top-bar
author sean
date Tue, 18 Aug 2015 13:05:55 +0200
parents accefaf00c6a
children a957a56bb694
files doc/connect_with_mon/bottledash.alert static/dash_style.css views/bottledash_view.tpl
diffstat 3 files changed, 29 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/doc/connect_with_mon/bottledash.alert	Fri Aug 14 15:37:52 2015 +0200
+++ b/doc/connect_with_mon/bottledash.alert	Tue Aug 18 13:05:55 2015 +0200
@@ -30,12 +30,11 @@
 getopts ("S:s:g:h:t:l:f:u");
 
 $ALERT = $opt_u ? "UPALERT" : "ALERT";
-$SERVICE = @ARGV;
 
 my $server_endpoint = "http://localhost:8000/updown";
 my $ua = LWP::UserAgent->new;
 my $req = HTTP::Request->new(POST => $server_endpoint);
 $req->header('content-type' => 'x-www-form-urlencoded');
-my $post_data = "service=$SERVICE&status=$ALERT";
+my $post_data = "service=@ARGV&status=$ALERT";
 $req->content($post_data);
 my $resp = $ua->request($req);
--- a/static/dash_style.css	Fri Aug 14 15:37:52 2015 +0200
+++ b/static/dash_style.css	Tue Aug 18 13:05:55 2015 +0200
@@ -21,6 +21,21 @@
     padding-top: 8px;
     padding-bottom: 8px;
     font-family: Arial, Helvetica, sans-serif;
+    color: white;
+    text-align:center;
+}
+
+#top_left{
+  float: left;
+}
+
+#top_center{
+  display: inline-block;
+  float: center;
+}
+
+#top_right{
+  float: right;
 }
 
 .tile{
--- a/views/bottledash_view.tpl	Fri Aug 14 15:37:52 2015 +0200
+++ b/views/bottledash_view.tpl	Tue Aug 18 13:05:55 2015 +0200
@@ -71,7 +71,6 @@
   </head>
   <body>
 
-
     <script type="text/javascript">
 
       var global_width;
@@ -162,7 +161,19 @@
     <div id = "wrapper">
         % if show_top_bar == "True":
         <div id = "topbar">
-            <b>{{weekday}}</b> {{today.day}}. {{month_name}}
+            <div id = "top_left">
+              <b>{{weekday}}</b> {{today.day}}. {{month_name}}
+            </div>
+
+            <div id = "top_center">
+              Webadresse: <script>document.write(window.location.href)</script>
+            </div>
+
+            <div id = "top_right">
+              Synced: 0 Minutes Ago
+            </div>
+
+
         </div>
         % end
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)