Mercurial > bottledash
annotate views/hello_template.tpl @ 12:50f4c64834cb
delegation of dynamic charts works now
author | sean |
---|---|
date | Tue, 04 Aug 2015 16:00:07 +0200 |
parents | 7a573ec679a6 |
children | 63b9f41c3008 |
rev | line source |
---|---|
4
3e66e2f92770
added LICENSE and license headers in the sourcecode. Added readme
sean
parents:
3
diff
changeset
|
1 <!-- This tempalte is a part of bottledash |
3e66e2f92770
added LICENSE and license headers in the sourcecode. Added readme
sean
parents:
3
diff
changeset
|
2 author: sean engelhardt >sean.engelhardt@intevation.de |
3e66e2f92770
added LICENSE and license headers in the sourcecode. Added readme
sean
parents:
3
diff
changeset
|
3 License: GNU GPL >= v2. See LICENSE for details. --> |
3e66e2f92770
added LICENSE and license headers in the sourcecode. Added readme
sean
parents:
3
diff
changeset
|
4 |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
5 <% |
11 | 6 import math, os, sys, subprocess, html.parser |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
7 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
8 from datetime import date |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
9 |
11 | 10 h = html.parser.HTMLParser() |
11 PATH = os.path.abspath(os.path.dirname(sys.argv[0])) | |
12 sys.path.append(PATH + "/modules") | |
13 import roundup_cc | |
14 | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
15 ################# |
7 | 16 # settings # |
17 ################# | |
18 | |
19 show_top_bar = settings["show_top_bar"] | |
20 | |
21 ################# | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
22 # date and time # |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
23 ################# |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
24 |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
25 today = date.today() |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
26 weekday = ("Montag", "Dienstag", "Mittwoch", "Donnerstag", |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
27 "Freitag", "Samstag", "Sonntag")[today.weekday()] |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
28 month_name = ("Januar", "Februar", "März", "Aprill", "Mai", |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
29 "Juni", "Juli", "August", "September", "Oktober", |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
30 "November", "Dezember")[today.month-1] |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
31 |
6 | 32 number_of_rows = 2 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
33 |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
34 ################# |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
35 # viewport size # |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
36 ################# |
7 | 37 vp_size = "17px" |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
38 #if len(tiles) <= 2: |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
39 # vp_size = "6vw" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
40 #elif len(tiles) >2 and len(tiles) <=4 : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
41 # vp_size = "5vw" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
42 #elif len(tiles) >4 and len(tiles) <=6 : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
43 # vp_size = "4vw" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
44 #elif len(tiles) >6 and len(tiles) <=8 : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
45 # vp_size = "3vw" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
46 #end |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
47 %> |
2 | 48 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
49 <script type="text/javascript"> |
6 | 50 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
51 var global_width; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
52 var global_height; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
53 var tile_width; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
54 var tile_height; |
6 | 55 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
56 var tiles = document.getElementsByClassName("tile"); |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
57 var border_width = 1; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
58 var space_between_tiles = 8; |
6 | 59 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
60 var space_lr_borders; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
61 var space_lr_margin; |
6 | 62 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
63 function calc_tile_with(){ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
64 var tiles_per_row = Math.floor(tiles.length / {{number_of_rows}}); |
6 | 65 var distance = (space_between_tiles*2) + (border_width*2); |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
66 var tile_width = ((global_width / tiles_per_row ) - distance); |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
67 return tile_width; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
68 } |
6 | 69 |
70 function calc_tile_height(){ | |
71 var distance = (space_between_tiles*2) + (border_width*2); | |
72 var tile_height = ((global_height / {{number_of_rows}} ) - distance); | |
73 return tile_height; | |
74 } | |
75 | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
76 function resize_content(){ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
77 global_width = document.getElementById("content").clientWidth; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
78 global_height = document.getElementById("content").clientHeight; |
6 | 79 |
80 | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
81 tile_width = calc_tile_with(); |
6 | 82 tile_height = calc_tile_height(); |
83 | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
84 for(var tile = 0; tile < tiles.length; tile++){ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
85 tiles[tile].style.width= tile_width + 'px'; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
86 tiles[tile].style.height= tile_height + 'px'; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
87 } |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
88 } |
6 | 89 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
90 window.onresize = function(){ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
91 resize_content(); |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
92 } |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
93 |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
94 document.addEventListener("DOMContentLoaded", function(event) { |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
95 resize_content(); |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
96 }); |
6 | 97 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
98 </script> |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
99 |
2 | 100 <style> |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
101 *{ |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
102 margin: 0 auto; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
103 padding: 0 auto; |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
104 font-family: "Lucida Console", Monaco, monospace; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
105 } |
6 | 106 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
107 body { |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
108 overflow: hidden; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
109 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
110 |
2 | 111 #wrapper{ |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
112 background-color: #F2F2F2; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
113 color: black; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
114 min-width: 100%; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
115 min-height: 100%; |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
116 } |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
117 |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
118 #topbar{ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
119 min-width: auto; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
120 padding-left: 8px; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
121 padding-top: 8px; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
122 padding-bottom: 8px; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
123 /*height: 5%;*/ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
124 font-family: Arial, Helvetica, sans-serif; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
125 } |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
126 |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
127 #content{ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
128 min-width: 100%; |
7 | 129 % if show_top_bar == "True": |
130 height: 95%; | |
131 % else : | |
132 height: 100%; | |
133 %end | |
2 | 134 } |
135 | |
136 .tile{ | |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
137 float: left; |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
138 margin: 8px; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
139 background-color: #FFFFFF; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
140 border: 1px solid #999999; |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
141 border: none; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
142 text-align:center; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
143 vertical-align: middle; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
144 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
145 |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
146 .clear{ |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
147 height: 0px; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
148 clear: both; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
149 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
150 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
151 /*tiles types*/ |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
152 |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
153 .statusmon{ |
2 | 154 color: white; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
155 font-size: {{vp_size}}; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
156 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
157 |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
158 .chart{ |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
159 font-size: {{vp_size}}; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
160 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
161 |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
162 .active{ |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
163 border: 1px solid #00cc00; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
164 background-color: #009900; |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
165 } |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
166 |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
167 .dead{ |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
168 border: 1px solid #cc0000; |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
169 background-color: #990000; |
2 | 170 } |
171 | |
172 </style> | |
173 | |
174 <div id = "wrapper"> | |
7 | 175 % if show_top_bar == "True" : |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
176 <div id = "topbar"> |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
177 <b>{{weekday}}</b> {{today.day}}. {{month_name}} |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
178 </div> |
7 | 179 % end |
2 | 180 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
181 <div id = "content"> |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
182 <% |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
183 for tile in tiles : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
184 type = "" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
185 text = "" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
186 status = "" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
187 if tile["type"] == "mon" : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
188 type = "statusmon" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
189 text = tile["source"] |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
190 if tile["status"] == "up" : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
191 status = "active" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
192 elif tile["status"] == "down" : |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
193 status = "dead" |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
194 end |
11 | 195 elif tile["type"] == "d3js" : |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
196 type = "chart" |
11 | 197 status = "" |
12 | 198 text = roundup_cc.make_chart(tile["status"]) |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
199 end |
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
200 %> |
11 | 201 |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
202 <div class = "tile {{type}} {{status}}"> |
11 | 203 {{!text}} |
3
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
204 </div> |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
205 |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
206 % end |
3f5bcad45756
pars a .conf | dynamic adding of divs | dynamiv VP scaling
sean
parents:
2
diff
changeset
|
207 |
5
c49f7fe82743
changed the grid layout to a more responsive and compatible self-calculating JS based version
sean
parents:
4
diff
changeset
|
208 </div> |
6 | 209 </div> |