# HG changeset patch # User sean # Date 1438774586 -7200 # Node ID 09e3c38a78029e0f2d0a6e3cdd2d4125fdb379a5 # Parent f89ad628f831065aa9614cb57480fe609c5f2c56 removing the old template cause of an ambiguous name diff -r f89ad628f831 -r 09e3c38a7802 views/hello_template.tpl --- a/views/hello_template.tpl Wed Aug 05 13:33:15 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,209 +0,0 @@ - - -<% - import math, os, sys, subprocess, html.parser - - from datetime import date - - h = html.parser.HTMLParser() - PATH = os.path.abspath(os.path.dirname(sys.argv[0])) - sys.path.append(PATH + "/modules") - import roundup_cc - - ################# - # settings # - ################# - - show_top_bar = settings["show_top_bar"] - - ################# - # date and time # - ################# - - today = date.today() - weekday = ("Montag", "Dienstag", "Mittwoch", "Donnerstag", - "Freitag", "Samstag", "Sonntag")[today.weekday()] - month_name = ("Januar", "Februar", "März", "Aprill", "Mai", - "Juni", "Juli", "August", "September", "Oktober", - "November", "Dezember")[today.month-1] - - number_of_rows = 1 - - ################# - # viewport size # - ################# - vp_size = "17px" - #if len(tiles) <= 2: - # vp_size = "6vw" - #elif len(tiles) >2 and len(tiles) <=4 : - # vp_size = "5vw" - #elif len(tiles) >4 and len(tiles) <=6 : - # vp_size = "4vw" - #elif len(tiles) >6 and len(tiles) <=8 : - # vp_size = "3vw" - #end -%> - - - - - -
- % if show_top_bar == "True" : -
- {{weekday}} {{today.day}}. {{month_name}} -
- % end - -
- <% - for tile in tiles : - type = "" - tile_content = "" - status = "" - if tile["type"] == "mon" : - type = "statusmon" - tile_content = tile["source"] - if tile["status"] == "up" : - status = "active" - elif tile["status"] == "down" : - status = "dead" - end - elif tile["type"] == "d3js" : - type = "chart" - status = tile["div_name"] - tile_content = roundup_cc.make_chart(tile["script"], tile["div_name"]) - end - %> - -
- {{!tile_content}} -
- - % end - -
-