diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-10 16:42:04 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-10 16:42:04 +0200 |
commit | 15af905a2ec5a2ceefca1c650519168f65a7c22f (patch) | |
tree | 35362ddc6f1a45287d0c68479ed8e0de1edfbbfe | |
parent | b4128aa649e10371a64d5905434038a2c08a970e (diff) |
show version on about page
-rw-r--r-- | lib/DBInfoscreen/Controller/Static.pm | 8 |
1 files changed, 7 insertions, 1 deletions
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 { |