summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/db-fakedisplay5
-rw-r--r--cgi/index.pl7
-rw-r--r--share/multi-lcd.html15
3 files changed, 25 insertions, 2 deletions
diff --git a/bin/db-fakedisplay b/bin/db-fakedisplay
index 32e342c..3a3b0f9 100755
--- a/bin/db-fakedisplay
+++ b/bin/db-fakedisplay
@@ -113,7 +113,10 @@ else {
}
}
-$template->param( departures => \@params, );
+$template->param(
+ departures => \@params,
+ version => $VERSION
+);
say $template->output;
diff --git a/cgi/index.pl b/cgi/index.pl
index 866f867..a8c9f25 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -5,6 +5,8 @@ use File::ShareDir qw(dist_file);
use HTML::Template;
use Travel::Status::DE::DeutscheBahn;
+our $VERSION = '0.00';
+
sub get_results_for {
my ($station) = @_;
@@ -63,7 +65,10 @@ get '/multi/:station' => sub {
}
);
}
- $template->param( departures => \@params );
+ $template->param(
+ departures => \@params,
+ version => $VERSION
+ );
$self->render( text => $template->output );
};
diff --git a/share/multi-lcd.html b/share/multi-lcd.html
index 466cb07..fda4cf5 100644
--- a/share/multi-lcd.html
+++ b/share/multi-lcd.html
@@ -79,6 +79,16 @@
border-bottom: 0.1em solid #000066;
}
+ div.about {
+ text-align: right;;
+ font-family: Sans-Serif;
+ color: #666666;
+ }
+
+ div.about a {
+ color: #000066;
+ }
+
</style>
</head>
<body>
@@ -118,5 +128,10 @@
</div> <!-- outer -->
+<div class="about">
+<a href="http://finalrewind.org/projects/db-fakedisplay/">db-fakedisplay</a>
+v<TMPL_VAR version>
+</div>
+
</body>
</html>