From 2505244db4689b848273a59ab2af0c87fd8eb816 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 15 Aug 2011 13:34:24 +0200 Subject: Show version information in HTML --- bin/db-fakedisplay | 5 ++++- cgi/index.pl | 7 ++++++- share/multi-lcd.html | 15 +++++++++++++++ 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; + } + @@ -118,5 +128,10 @@ +
+db-fakedisplay +v +
+ -- cgit v1.2.3