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