From 57f686b688d1ae09a3ab6fe6b54ba3c7c18c16a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 19 Feb 2020 20:58:38 +0100 Subject: allow showing past journeys on shared status page --- templates/journey.html.ep | 78 ++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 38 deletions(-) (limited to 'templates/journey.html.ep') diff --git a/templates/journey.html.ep b/templates/journey.html.ep index ae8f750..bd22edc 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -223,44 +223,46 @@ -
- -
- %= form_for '/journey/edit' => (method => 'POST') => begin - %= hidden_field 'journey_id' => param('journey_id') - - %= end -
-
-
-
- %= form_for '/journey/edit' => (method => 'POST') => begin - %= hidden_field 'journey_id' => param('journey_id') - - %= end + % if (not stash('readonly')) { +
+ +
+ %= form_for '/journey/edit' => (method => 'POST') => begin + %= hidden_field 'journey_id' => param('journey_id') + + %= end +
-
- - - Löschen - +
+
+ %= form_for '/journey/edit' => (method => 'POST') => begin + %= hidden_field 'journey_id' => param('journey_id') + + %= end +
+
-
+ % } % } -- cgit v1.2.3