From 89526fb1e996ccc9710af9c1268eaf4359c4bc2a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 21 Jul 2011 18:23:58 +0200 Subject: Add template for multi-departure lcd (the big screen on main stations) --- bin/db-fakedisplay | 5 ++- share/multi-lcd.html | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 share/multi-lcd.html diff --git a/bin/db-fakedisplay b/bin/db-fakedisplay index f9ce899..32e342c 100755 --- a/bin/db-fakedisplay +++ b/bin/db-fakedisplay @@ -33,7 +33,10 @@ if ( $mode eq 'single' and not $template_file ) { ( $station, @platforms ) = @ARGV; $template_file //= dist_file( 'db-fakedisplay', 'multi-lcd.html' ); -$template = HTML::Template->new( filename => $template_file ); +$template = HTML::Template->new( + filename => $template_file, + loop_context_vars => 1 +); if ( not defined $station ) { show_help(1); diff --git a/share/multi-lcd.html b/share/multi-lcd.html new file mode 100644 index 0000000..466cb07 --- /dev/null +++ b/share/multi-lcd.html @@ -0,0 +1,122 @@ + + + + + + + + + +
+ + +
+
+ +
+ +
+ +
+
+ +
+
+ + + - + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + -- cgit v1.2.3