comparison views/hello_template.tpl @ 7:c8cb2aa0b72c

fixed default condifuration
author sean
date Wed, 22 Jul 2015 13:31:25 +0200
parents 3acc5164369e
children 7a573ec679a6
comparison
equal deleted inserted replaced
6:3acc5164369e 7:c8cb2aa0b72c
4 4
5 <% 5 <%
6 6
7 import math 7 import math
8 from datetime import date 8 from datetime import date
9
10 #################
11 # settings #
12 #################
13
14
15 show_top_bar = settings["show_top_bar"]
16
9 17
10 ################# 18 #################
11 # date and time # 19 # date and time #
12 ################# 20 #################
13 21
17 "Freitag", "Samstag", "Sonntag")[today.weekday()] 25 "Freitag", "Samstag", "Sonntag")[today.weekday()]
18 month_name = ("Januar", "Februar", "März", "Aprill", "Mai", 26 month_name = ("Januar", "Februar", "März", "Aprill", "Mai",
19 "Juni", "Juli", "August", "September", "Oktober", 27 "Juni", "Juli", "August", "September", "Oktober",
20 "November", "Dezember")[today.month-1] 28 "November", "Dezember")[today.month-1]
21 29
22
23 ##################
24 # size of tiles #
25 ##################
26
27 number_of_rows = 2 30 number_of_rows = 2
28 31
29 ################# 32 #################
30 # viewport size # 33 # viewport size #
31 ################# 34 #################
32 35 vp_size = "17px"
33 vp_size = "12px"
34
35 #if len(tiles) <= 2: 36 #if len(tiles) <= 2:
36 # vp_size = "6vw" 37 # vp_size = "6vw"
37 #elif len(tiles) >2 and len(tiles) <=4 : 38 #elif len(tiles) >2 and len(tiles) <=4 :
38 # vp_size = "5vw" 39 # vp_size = "5vw"
39 #elif len(tiles) >4 and len(tiles) <=6 : 40 #elif len(tiles) >4 and len(tiles) <=6 :
121 font-family: Arial, Helvetica, sans-serif; 122 font-family: Arial, Helvetica, sans-serif;
122 } 123 }
123 124
124 #content{ 125 #content{
125 min-width: 100%; 126 min-width: 100%;
126 height:95%; 127 % if show_top_bar == "True":
128 height: 95%;
129 % else :
130 height: 100%;
131 %end
127 } 132 }
128 133
129 .tile{ 134 .tile{
130 float: left; 135 float: left;
131 margin: 8px; 136 margin: 8px;
163 } 168 }
164 169
165 </style> 170 </style>
166 171
167 <div id = "wrapper"> 172 <div id = "wrapper">
168 173 % if show_top_bar == "True" :
169 <div id = "topbar"> 174 <div id = "topbar">
170 <b>{{weekday}}</b> {{today.day}}. {{month_name}} 175 <b>{{weekday}}</b> {{today.day}}. {{month_name}}
171 </div> 176 </div>
177 % end
172 178
173 <div id = "content"> 179 <div id = "content">
174 180
175 <% 181 <%
176 for tile in tiles : 182 for tile in tiles :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)