From beb59221e733c6b9afe870aefc1c725baebb85cb Mon Sep 17 00:00:00 2001 From: Molly Miller Date: Mon, 12 Jun 2023 20:46:10 +0200 Subject: Add app version to default stashed values. This means that the version no longer needs to be passed to every version manually, and is automatically populated in templates where the parameter is not explicitly provided. --- lib/Travelynx/Controller/Static.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/Travelynx/Controller/Static.pm') diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm index b5f6d89..0f4b8bd 100644 --- a/lib/Travelynx/Controller/Static.pm +++ b/lib/Travelynx/Controller/Static.pm @@ -8,15 +8,13 @@ use Mojo::Base 'Mojolicious::Controller'; sub about { my ($self) = @_; - $self->render( 'about', - version => $self->app->config->{version} // 'UNKNOWN' ); + $self->render('about'); } sub changelog { my ($self) = @_; - $self->render( 'changelog', - version => $self->app->config->{version} // 'UNKNOWN' ); + $self->render('changelog'); } sub imprint { -- cgit v1.2.3