Mercurial > bottledash
diff views/hello_template.tpl @ 11:7a573ec679a6
added more files, can now display charts a bit
author | sean |
---|---|
date | Tue, 04 Aug 2015 14:23:53 +0200 |
parents | c8cb2aa0b72c |
children | 50f4c64834cb |
line wrap: on
line diff
--- a/views/hello_template.tpl Wed Jul 29 12:27:26 2015 +0200 +++ b/views/hello_template.tpl Tue Aug 04 14:23:53 2015 +0200 @@ -3,23 +3,25 @@ License: GNU GPL >= v2. See LICENSE for details. --> <% + import math, os, sys, subprocess, html.parser - import math 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()] @@ -177,7 +179,6 @@ % end <div id = "content"> - <% for tile in tiles : type = "" @@ -191,13 +192,16 @@ elif tile["status"] == "down" : status = "dead" end - elif tile["type"] == "d3.js" : + elif tile["type"] == "d3js" : type = "chart" - text = "place for a chart!" + status = "" + text = roundup_cc.get_tech_intern_chart() + #text = "<div id = KAKAK>HHOHOHOHOH </div>" end %> + <div class = "tile {{type}} {{status}}"> - {{text}} + {{!text}} </div> % end