summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-13 14:36:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-13 14:36:50 +0200
commitf5b52ba5f5c6391a498a242b782f24252aef6bb7 (patch)
treeed3f1fa81860721ec212b878f53df35782e51061 /share
parent784c3d193f669ede6bde3b9c734455a5eaf39546 (diff)
Support multiple platforms
Diffstat (limited to 'share')
-rw-r--r--share/template.html37
1 files changed, 31 insertions, 6 deletions
diff --git a/share/template.html b/share/template.html
index f66ec6e..764d949 100644
--- a/share/template.html
+++ b/share/template.html
@@ -11,9 +11,10 @@
color: white;
font-family: Sans-Serif;
font-weight: bold;
- position: absolute;
- left: 1em;
- top: 1em;
+ position: relative;
+ margin-left: 1em;
+ margin-top: 1em;
+ float: left;
width: 28em;
height: 4.5em;
border: 0.7em solid #000066;
@@ -24,6 +25,12 @@
position: absolute;
}
+ div.no-data {
+ top: 0.5em;
+ left: 1em;
+ font-size: 2em;
+ }
+
div.time {
top: 0em;
left: 0em;
@@ -42,6 +49,10 @@
height: 1em;
}
+ div.via span {
+ margin-right: 0.4em;
+ }
+
div.destination {
top: 1.2em;
left: 2.9em;
@@ -66,7 +77,15 @@
</style>
</head>
<body>
+
+<TMPL_LOOP platform>
+
<div class="display">
+<div class="platform">
+<TMPL_VAR platform>
+</div>
+
+<TMPL_IF train>
<div class="time">
<TMPL_VAR time>
</div>
@@ -81,14 +100,20 @@
<div class="destination">
<TMPL_VAR destination>
</div>
-<div class="platform">
-<TMPL_VAR platform>
-</div>
<TMPL_IF info>
<div class="info">
<TMPL_VAR info>
</div>
</TMPL_IF>
+<TMPL_ELSE>
+<div class="no-data">
+Bitte Ansage beachten
</div>
+</TMPL_IF>
+
+</div> <!-- display -->
+
+</TMPL_LOOP>
+
</body>
</html>