diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-27 07:12:52 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-27 07:13:13 +0200 |
commit | f5091f1081551bb27c4dcf87cf9c514cc53c400f (patch) | |
tree | ce16fea5510ad1807d8306fcf0298d9710ebbe64 /templates | |
parent | 1edae95223de4ed49aa09625ae405bb3ce16e957 (diff) |
Allows journeys to be exported (downloaded) as raw JSON
Closes #279
Diffstat (limited to 'templates')
-rw-r--r-- | templates/journey.html.ep | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index a3b7e7b..2699d4a 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -335,6 +335,16 @@ </div> </div> % } + <div class="row"> + <div class="col s12 m6 l6"> + </div> + <div class="col s12 m6 l6 center-align"> + <a class="btn waves-effect waves-light" href="<%= url_for('journey', id => $journey->{id}, format => 'json' ) %>"> + <i class="material-icons left" aria-hidden="true">file_download</i> + %= L('journey.export') + </a> + </div> + </div> <div class="row hide-on-small-only"> <div class="col s12 m6 l6 center-align"> <a class="waves-effect waves-light red btn action-delete" |