From 15af905a2ec5a2ceefca1c650519168f65a7c22f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 10 Jun 2019 16:42:04 +0200 Subject: show version on about page --- lib/DBInfoscreen/Controller/Static.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm index ba2cd89..3985f28 100644 --- a/lib/DBInfoscreen/Controller/Static.pm +++ b/lib/DBInfoscreen/Controller/Static.pm @@ -10,6 +10,8 @@ my %default = ( admode => 'deparr', ); +my $dbf_version = qx{git describe --dirty} || 'experimental'; + sub redirect { my ($self) = @_; my $station = $self->param('station'); @@ -46,7 +48,11 @@ sub geolocation { sub about { my ($self) = @_; - $self->render( 'about', hide_opts => 1 ); + $self->render( + 'about', + hide_opts => 1, + version => $dbf_version + ); } sub privacy { -- cgit v1.2.3