Commit 2505244d authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Show version information in HTML

parent 89adf313
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -113,7 +113,10 @@ else {
	}
}

$template->param( departures => \@params, );
$template->param(
	departures => \@params,
	version    => $VERSION
);

say $template->output;

+6 −1
Original line number Diff line number Diff line
@@ -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 );
};
+15 −0
Original line number Diff line number Diff line
@@ -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>