diff options
author | Tomasz Mieszkowski <tomasz.mieszkowski@ext.allegro.pl> | 2014-08-28 08:54:15 +0200 |
---|---|---|
committer | Tomasz Mieszkowski <tomasz.mieszkowski@ext.allegro.pl> | 2014-08-28 08:54:15 +0200 |
commit | 60c073a6ed451cf91d9877a3305407756b9ffdce (patch) | |
tree | 955542ec282745e31d78d1b2b9515d8cebe67e78 /tipboard/templates/layout.html | |
download | tipboard-60c073a6ed451cf91d9877a3305407756b9ffdce.tar.gz tipboard-60c073a6ed451cf91d9877a3305407756b9ffdce.tar.bz2 tipboard-60c073a6ed451cf91d9877a3305407756b9ffdce.zip |
Tipboard got open-sourced!1.4.0
Diffstat (limited to 'tipboard/templates/layout.html')
-rw-r--r-- | tipboard/templates/layout.html | 49 |
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 %} + + |