Mercurial > bottledash
diff views/hello_template.tpl @ 7:c8cb2aa0b72c
fixed default condifuration
author | sean |
---|---|
date | Wed, 22 Jul 2015 13:31:25 +0200 |
parents | 3acc5164369e |
children | 7a573ec679a6 |
line wrap: on
line diff
--- a/views/hello_template.tpl Wed Jul 22 10:47:55 2015 +0200 +++ b/views/hello_template.tpl Wed Jul 22 13:31:25 2015 +0200 @@ -8,6 +8,14 @@ from datetime import date ################# + # settings # + ################# + + + show_top_bar = settings["show_top_bar"] + + + ################# # date and time # ################# @@ -19,19 +27,12 @@ "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember")[today.month-1] - - ################## - # size of tiles # - ################## - number_of_rows = 2 ################# # viewport size # ################# - - vp_size = "12px" - + vp_size = "17px" #if len(tiles) <= 2: # vp_size = "6vw" #elif len(tiles) >2 and len(tiles) <=4 : @@ -123,7 +124,11 @@ #content{ min-width: 100%; - height:95%; + % if show_top_bar == "True": + height: 95%; + % else : + height: 100%; + %end } .tile{ @@ -165,10 +170,11 @@ </style> <div id = "wrapper"> - + % if show_top_bar == "True" : <div id = "topbar"> <b>{{weekday}}</b> {{today.day}}. {{month_name}} </div> + % end <div id = "content">