From 482fa975b5f50064deb57b651019908c17b71f47 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 3 Sep 2020 22:27:50 +0200 Subject: add public profile page and public journey details --- templates/profile.html.ep | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/profile.html.ep (limited to 'templates/profile.html.ep') diff --git a/templates/profile.html.ep b/templates/profile.html.ep new file mode 100644 index 0000000..1755303 --- /dev/null +++ b/templates/profile.html.ep @@ -0,0 +1,29 @@ +% if (stash('error')) { +
+
+
+
+ Fehler +

<%= stash('error') %>

+
+
+
+
+% } +% if ($public_level & 0x02 or ($public_level & 0x01 and is_user_authenticated())) { +
+
+ %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey +
+
+% } +% if ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated())) { +
+
+

Letzte Fahrten von <%= $name %>

+
+
+ %= include '_history_trains', date_format => '%d.%m.%Y', link_prefix => "/p/${name}/j/", journeys => [journeys->get(uid => $uid, limit => 10, with_datetime => 1)]; +% } + +%= include '_footer', version => stash('version') -- cgit v1.2.3