diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 13:34:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 13:34:24 +0200 |
commit | 2505244db4689b848273a59ab2af0c87fd8eb816 (patch) | |
tree | b5d91827f892a84c633f65a4ddba82e773ddc40f | |
parent | 89adf31327f5526019115c31bddd57e2aa9640e6 (diff) |
Show version information in HTML
-rwxr-xr-x | bin/db-fakedisplay | 5 | ||||
-rw-r--r-- | cgi/index.pl | 7 | ||||
-rw-r--r-- | 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; + } + </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> |