diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-03 22:27:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-03 22:27:50 +0200 |
commit | 482fa975b5f50064deb57b651019908c17b71f47 (patch) | |
tree | 118e0247f29c058f61e53db5716df1c1d848d898 /templates/profile.html.ep | |
parent | ea0fe3ea3e72eb690dd5a92eb4831523be740d08 (diff) |
add public profile page and public journey details
Diffstat (limited to 'templates/profile.html.ep')
-rw-r--r-- | templates/profile.html.ep | 29 |
1 files changed, 29 insertions, 0 deletions
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')) { + <div class="row"> + <div class="col s12"> + <div class="card caution-color"> + <div class="card-content white-text"> + <span class="card-title">Fehler</span> + <p><%= stash('error') %></p> + </div> + </div> + </div> + </div> +% } +% if ($public_level & 0x02 or ($public_level & 0x01 and is_user_authenticated())) { + <div class="row"> + <div class="col s12 publicstatuscol" data-user="<%= $name %>"> + %= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey + </div> + </div> +% } +% if ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated())) { + <div class="row"> + <div class="col s12"> + <h2>Letzte Fahrten von <%= $name %></h1> + </div> + </div> + %= 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') |