diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2022-09-23 19:25:17 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2022-09-23 19:25:17 +0200 | 
| commit | 906a8a4f55f79c45555bf0b4c897383dfef7d48a (patch) | |
| tree | 5e84a20aff4859a2c41292f9ae0083e97c7db248 | |
| parent | 8198c9fe23f8281052a132cee820585cd665ea20 (diff) | |
departure board: add footer
| -rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 9 | ||||
| -rw-r--r-- | templates/departures.html.ep | 2 | 
2 files changed, 9 insertions, 2 deletions
| diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index ec728f0..1e6a868 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -976,7 +976,9 @@ sub station {  							station          => $status->{station_name},  							related_stations => $status->{related_stations},  							connections      => \@connecting_trains, -							title => "travelynx: $status->{station_name}", +							title   => "travelynx: $status->{station_name}", +							version => $self->app->config->{version} +							  // 'UNKNOWN',  						);  					}  				)->catch( @@ -987,7 +989,9 @@ sub station {  							results          => \@results,  							station          => $status->{station_name},  							related_stations => $status->{related_stations}, -							title => "travelynx: $status->{station_name}", +							title   => "travelynx: $status->{station_name}", +							version => $self->app->config->{version} +							  // 'UNKNOWN',  						);  					}  				)->wait; @@ -1000,6 +1004,7 @@ sub station {  					station          => $status->{station_name},  					related_stations => $status->{related_stations},  					title            => "travelynx: $status->{station_name}", +					version => $self->app->config->{version} // 'UNKNOWN',  				);  			}  		} diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 3ef081b..35b5cfd 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -111,3 +111,5 @@  		</table>  	</div>  </div> + +%= include '_footer', version => stash('version') | 
