Mercurial > bottledash
comparison 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 |
comparison
equal
deleted
inserted
replaced
19:be6a1aaec717 | 20:1a13a4ecf931 |
---|---|
41 # vp_size = "4vw" | 41 # vp_size = "4vw" |
42 #elif len(tiles) >6 and len(tiles) <=8 : | 42 #elif len(tiles) >6 and len(tiles) <=8 : |
43 # vp_size = "3vw" | 43 # vp_size = "3vw" |
44 #end | 44 #end |
45 %> | 45 %> |
46 | 46 <meta http-equiv="refresh" content="5" /> |
47 <script type="text/javascript"> | 47 <script type="text/javascript"> |
48 | 48 |
49 var global_width; | 49 var global_width; |
50 var global_height; | 50 var global_height; |
51 var tile_width; | 51 var tile_width; |
180 <% | 180 <% |
181 for tile in tiles : | 181 for tile in tiles : |
182 type = "" | 182 type = "" |
183 tile_content = "" | 183 tile_content = "" |
184 status = "" | 184 status = "" |
185 | |
185 if tile["type"] == "mon" : | 186 if tile["type"] == "mon" : |
186 type = "statusmon" | 187 type = "statusmon" |
187 tile_content = tile["source"] | 188 tile_content = tile["source"] |
188 if tile["status"] == "up" : | 189 if tile["status"] == "up" : |
189 status = "active" | 190 status = "active" |
190 elif tile["status"] == "down" : | 191 else : |
191 status = "dead" | 192 status = "dead" |
192 end | 193 end |
194 | |
193 elif tile["type"] == "d3js" : | 195 elif tile["type"] == "d3js" : |
194 type = "chart" | 196 type = "chart" |
195 status = tile["div_name"] | 197 status = tile["div_name"] |
196 tile_content = web_view.make_chart(tile["script"], tile["div_name"]) | 198 tile_content = web_view.make_chart(tile["script"], tile["div_name"]) |
197 end | 199 end |