summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-06-10 16:42:04 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-06-10 16:42:04 +0200
commit15af905a2ec5a2ceefca1c650519168f65a7c22f (patch)
tree35362ddc6f1a45287d0c68479ed8e0de1edfbbfe /lib/DBInfoscreen/Controller
parentb4128aa649e10371a64d5905434038a2c08a970e (diff)
show version on about page
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Static.pm8
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 {