aboutsummaryrefslogtreecommitdiffstats
path: root/tipboard/templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'tipboard/templates/layout.html')
-rw-r--r--tipboard/templates/layout.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/tipboard/templates/layout.html b/tipboard/templates/layout.html
new file mode 100644
index 0000000..bd31039
--- /dev/null
+++ b/tipboard/templates/layout.html
@@ -0,0 +1,49 @@
+{% extends "base.html" %}
+
+{% block page_title %}{{ details['page_title'] }}{% end %}
+
+{% block head %}
+ {% for file in tiles_css %}
+ <link href="{{ static_url(file) }}" rel="stylesheet" media="screen">
+ {% end %}
+ {% for file in tiles_js %}
+ <script src="{{ static_url(file) }}"></script>
+ {% end %}
+{% end %}
+
+{% block put_body %}
+
+<body>
+
+ {% for rows in layout %}
+ {% for row in rows.keys() %}
+ {# ROWS #}
+ <div class="row {{ row }}">
+ {% for item in rows[row] %}
+ {# COLS #}
+ {% set col=item.keys().pop() %}
+ <div class="col {{ col }}">
+ {% for tile in item.values().pop() %}
+ {# TILE #}
+ {% module Template(
+ tile_path(tile['tile_template']),
+ tile_id=tile['tile_id'],
+ title=tile['title'],
+ timeout=tile.get('timeout', ''),
+ ) %}
+ <input id='{{tile['tile_id']}}-lastModified' type="hidden"
+ name="modified" value="">
+ <input id='{{tile['tile_id']}}-timeout' type="hidden"
+ name="timeout" value="{{tile.get('timeout', '')}}">
+ {% end %}
+ </div>
+ {% end %}
+ </div>
+ {% end %}
+ {% end %}
+
+</body>
+
+{% end %}
+
+