summaryrefslogtreecommitdiff
path: root/cgi/templates/main.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/main.html.ep')
-rw-r--r--cgi/templates/main.html.ep21
1 files changed, 10 insertions, 11 deletions
diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep
index e042e4c..7a8c38f 100644
--- a/cgi/templates/main.html.ep
+++ b/cgi/templates/main.html.ep
@@ -75,29 +75,28 @@ height="<%= $height * 5 %>" width="<%= $width * 5 %>"></iframe>
<%= $city %> <%= $stop %></a>
</p>
<p>
+Data is cached for 1 minute: JSON format:
+<ul>
+<li>error: err string if an error occured, otherwise null</li>
+<li>preformatted: strings used by the PNG / HTML frontend</li>
+<li>raw:
% if (param('backend') and param('backend') eq 'db') {
-The raw data consists of serialized
+serialized
<a href="http://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">
Travel::Status::DE::DeutscheBahn</a>-objects, see the
<a href="http://man.finalrewind.org/3/Travel-Status-DE-DeutscheBahn-Result/">::Result</a>
-documentation.
+documentation
% }
% else {
-The raw data consists of serialized
+serialized
<a href="http://finalrewind.org/projects/Travel-Status-DE-VRR/">
Travel::Status::DE::VRR</a>-objects, see the
<a href="http://man.finalrewind.org/3/Travel-Status-DE-VRR-Result/">::Result</a>
and
<a href="http://man.finalrewind.org/3/Travel-Status-DE-VRR-Line/">::Line</a>
-documentation.
+documentation
% }
-</p>
-<p>
-Notes:
-<ul>
-<li>data is cached for 1 minute</li>
-<li>preformatted contains the string used by the PNG / HTML frontend</li>
-<li>if an error occured, the error field is non-null</li>
+</li>
</ul>
</p>
% }