Loading index.pl +4 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,10 @@ helper 'undo' => sub { return 'Nested undo (undoing an undo) is not supported'; } if ( @{$rows} > 1 and $rows->[1][0] == $action_type{undo}) { return 'Repeated undo is not supported'; } my $success = $self->app->undo_query->execute( $self->get_user_id, DateTime->now( time_zone => 'Europe/Berlin' )->epoch, Loading templates/departures.html.ep +14 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,20 @@ </div> </div> % } % elsif ($status->{timestamp_delta} < 600) { <div class="card grey darken-4"> <div class="card-content white-text"> <span class="card-title">Ausgecheckt</span> <p>Aus <%= $status->{train_type} %> <%= $status->{train_no} %> bis <%= $status->{station_name} %></p> </div> <div class="card-action"> <a class="action-undo"> <i class="material-icons">undo</i> Rückgängig? </a> </div> </div> % } </div> </div> <div class="row"> Loading Loading
index.pl +4 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,10 @@ helper 'undo' => sub { return 'Nested undo (undoing an undo) is not supported'; } if ( @{$rows} > 1 and $rows->[1][0] == $action_type{undo}) { return 'Repeated undo is not supported'; } my $success = $self->app->undo_query->execute( $self->get_user_id, DateTime->now( time_zone => 'Europe/Berlin' )->epoch, Loading
templates/departures.html.ep +14 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,20 @@ </div> </div> % } % elsif ($status->{timestamp_delta} < 600) { <div class="card grey darken-4"> <div class="card-content white-text"> <span class="card-title">Ausgecheckt</span> <p>Aus <%= $status->{train_type} %> <%= $status->{train_no} %> bis <%= $status->{station_name} %></p> </div> <div class="card-action"> <a class="action-undo"> <i class="material-icons">undo</i> Rückgängig? </a> </div> </div> % } </div> </div> <div class="row"> Loading