mirror of
https://github.com/derf/travelynx
synced 2024-12-04 18:29:11 +00:00
perltidy
This commit is contained in:
parent
40eb74887b
commit
7eedd5149f
4 changed files with 22 additions and 16 deletions
|
@ -154,7 +154,7 @@ sub profile {
|
|||
|
||||
$self->render(
|
||||
'profile',
|
||||
title => "travelynx: $name",
|
||||
title => "travelynx: $name",
|
||||
name => $name,
|
||||
uid => $user->{id},
|
||||
privacy => $user,
|
||||
|
@ -314,7 +314,7 @@ sub journey_details {
|
|||
}
|
||||
$self->render(
|
||||
'journey',
|
||||
title => "travelynx: $title",
|
||||
title => "travelynx: $title",
|
||||
error => undef,
|
||||
journey => $journey,
|
||||
with_map => 1,
|
||||
|
@ -472,7 +472,7 @@ sub user_status {
|
|||
any => {
|
||||
template => 'user_status',
|
||||
name => $name,
|
||||
title => "travelynx: $tw_data{title}",
|
||||
title => "travelynx: $tw_data{title}",
|
||||
privacy => $user,
|
||||
journey => $status,
|
||||
twitter => \%tw_data,
|
||||
|
|
|
@ -8,25 +8,25 @@ use Mojo::Base 'Mojolicious::Controller';
|
|||
sub about {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->render('about', title => 'Über travelynx');
|
||||
$self->render( 'about', title => 'Über travelynx' );
|
||||
}
|
||||
|
||||
sub changelog {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->render('changelog', title => 'travelynx: Changelog');
|
||||
$self->render( 'changelog', title => 'travelynx: Changelog' );
|
||||
}
|
||||
|
||||
sub imprint {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->render('imprint', title => 'travelynx: Impressum');
|
||||
$self->render( 'imprint', title => 'travelynx: Impressum' );
|
||||
}
|
||||
|
||||
sub legend {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->render('legend', title => 'travelynx: Legende' );
|
||||
$self->render( 'legend', title => 'travelynx: Legende' );
|
||||
}
|
||||
|
||||
sub offline {
|
||||
|
|
|
@ -144,7 +144,7 @@ sub settings {
|
|||
$self->param( tweet => 1 );
|
||||
}
|
||||
|
||||
$self->stash ( title => 'travelynx × träwelling' );
|
||||
$self->stash( title => 'travelynx × träwelling' );
|
||||
$self->render(
|
||||
'traewelling',
|
||||
traewelling => $traewelling,
|
||||
|
|
|
@ -1185,7 +1185,10 @@ sub cancelled {
|
|||
sub history {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->render( template => 'history', title => 'travelynx: History' );
|
||||
$self->render(
|
||||
template => 'history',
|
||||
title => 'travelynx: History'
|
||||
);
|
||||
}
|
||||
|
||||
sub commute {
|
||||
|
@ -1293,7 +1296,7 @@ sub commute {
|
|||
journeys_by_month => \%journeys_by_month,
|
||||
count_by_month => \%count_by_month,
|
||||
total_journeys => $total,
|
||||
title => 'travelynx: Reisen nach Station',
|
||||
title => 'travelynx: Reisen nach Station',
|
||||
months => [
|
||||
qw(Januar Februar März April Mai Juni Juli August September Oktober November Dezember)
|
||||
],
|
||||
|
@ -1391,7 +1394,7 @@ sub map_history {
|
|||
template => 'history_map',
|
||||
year => $year,
|
||||
with_map => 1,
|
||||
title => 'travelynx: Karte',
|
||||
title => 'travelynx: Karte',
|
||||
%{$res}
|
||||
);
|
||||
}
|
||||
|
@ -1588,7 +1591,7 @@ sub yearly_history {
|
|||
},
|
||||
any => {
|
||||
template => 'history_by_year',
|
||||
title => "travelynx: $year",
|
||||
title => "travelynx: $year",
|
||||
journeys => [@journeys],
|
||||
year => $year,
|
||||
have_review => $with_review,
|
||||
|
@ -1663,7 +1666,7 @@ sub monthly_history {
|
|||
},
|
||||
any => {
|
||||
template => 'history_by_month',
|
||||
title => "travelynx: $month_name $year",
|
||||
title => "travelynx: $month_name $year",
|
||||
journeys => [@journeys],
|
||||
year => $year,
|
||||
month => $month,
|
||||
|
@ -1742,9 +1745,12 @@ sub journey_details {
|
|||
|
||||
$self->render(
|
||||
'journey',
|
||||
title => sprintf( 'travelynx: Fahrt %s %s %s am %s',
|
||||
$journey->{type}, $journey->{line} // '', $journey->{no},
|
||||
$journey->{sched_departure}->strftime('%d.%m.%Y um %H:%M') ),
|
||||
title => sprintf(
|
||||
'travelynx: Fahrt %s %s %s am %s',
|
||||
$journey->{type}, $journey->{line} // '',
|
||||
$journey->{no},
|
||||
$journey->{sched_departure}->strftime('%d.%m.%Y um %H:%M')
|
||||
),
|
||||
error => undef,
|
||||
journey => $journey,
|
||||
journey_visibility => $visibility,
|
||||
|
|
Loading…
Reference in a new issue