diff options
author | Daniel Friesel <derf@finalrewind.org> | 2023-02-27 22:14:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2023-02-27 22:14:54 +0100 |
commit | 6d261197e3138c80357ec485749e2089ef6ff96a (patch) | |
tree | 3089879a8863354e6b1cd669caf37bcb8558883a /templates/journey.html.ep | |
parent | fb3878665b38f1e4c2439238c19cba0c9767f721 (diff) |
set visibility per journey (wip)
some odds and ends left to polish, but ready for testing
Diffstat (limited to 'templates/journey.html.ep')
-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 50dcb3e..74c032b 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -38,6 +38,16 @@ % } am <b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b> + % if ($journey_visibility) { + % if (stash('username')) { + <i class="material-icons right"><%= visibility_icon($journey_visibility) %></i> + % } + % else { + <a class="right" href="/journey/visibility?id=<%= $journey->{id} %>"> + <i class="material-icons"><%= visibility_icon($journey_visibility) %></i> + </a> + % } + % } </p> % if ($journey->{edited}) { <p> |