Mercurial > bottledash
diff views/bottledash_view.tpl @ 20:1a13a4ecf931
can not recive post-requests wich should deliver if a server is up or down. Updated after a refresh of the webpage, wich will automatically done after 5 seconds
author | sean |
---|---|
date | Wed, 12 Aug 2015 13:45:58 +0200 |
parents | be6a1aaec717 |
children | f730dd0bcf85 |
line wrap: on
line diff
--- a/views/bottledash_view.tpl Tue Aug 11 14:18:09 2015 +0200 +++ b/views/bottledash_view.tpl Wed Aug 12 13:45:58 2015 +0200 @@ -43,7 +43,7 @@ # vp_size = "3vw" #end %> - +<meta http-equiv="refresh" content="5" /> <script type="text/javascript"> var global_width; @@ -182,14 +182,16 @@ type = "" tile_content = "" status = "" + if tile["type"] == "mon" : type = "statusmon" tile_content = tile["source"] if tile["status"] == "up" : status = "active" - elif tile["status"] == "down" : + else : status = "dead" end + elif tile["type"] == "d3js" : type = "chart" status = tile["div_name"]