diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 19:53:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 19:53:01 +0200 |
commit | e07063c52c51569b5f252a202f5d71b5f70a73e7 (patch) | |
tree | 301f64f3fe95038a2551a81c927ff0206df93243 /templates/journey.html.ep | |
parent | 2cae5a51d2f2a8002864860f452fa9474dc2ecb3 (diff) |
Add manual journey entry
Closes #3
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r-- | templates/journey.html.ep | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 4af9694..4d0f3fd 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -121,15 +121,27 @@ % } </td> </tr> - <tr> - <th scope="row">Meldungen</th> - <td> - % for my $message (@{$journey->{messages} // []}) { - % my ($ts, $msg) = @{$message}; - <%= $ts->strftime('%d.%m.%Y %H:%M') %> : <%= $msg %><br/> - % } - </td> - </tr> + % if ($journey->{edited} == 0x3fff) { + <tr> + <th scope="row">Kommentar</th> + <td> + % for my $message (@{$journey->{messages} // []}) { + <%= $message->[1] %><br/> + % } + </td> + </tr> + % } + % else { + <tr> + <th scope="row">Meldungen</th> + <td> + % for my $message (@{$journey->{messages} // []}) { + % my ($ts, $msg) = @{$message}; + <%= $ts->strftime('%d.%m.%Y %H:%M') %> : <%= $msg %><br/> + % } + </td> + </tr> + % } <tr> <th scope="row">Route</th> <td> @@ -172,6 +184,7 @@ %= form_for '/journey/edit' => (method => 'POST') => begin %= hidden_field 'journey_id' => param('journey_id') <button class="btn waves-effect waves-light" type="submit" name="action" value="edit"> + <i class="material-icons left">edit</i> Bearbeiten </button> %= end |