summaryrefslogtreecommitdiff
path: root/templates/_public_status_card.html.ep
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-04 18:21:36 +0200
committerDerf Null <derf@finalrewind.org>2023-06-04 18:21:36 +0200
commit00eb6af1bd21df42fc41195ceed0fad73bbb5f27 (patch)
treeaea171b00a79681e403292b0ad06b01e5d9a21d1 /templates/_public_status_card.html.ep
parent07fe4ecd1f73e7b111d4cd6f6bb8fd390b5f3151 (diff)
expose follows / social interaction in frontend
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r--templates/_public_status_card.html.ep39
1 files changed, 22 insertions, 17 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 94ebf44..8e3eec7 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -1,28 +1,28 @@
-<div class="autorefresh">
+<div class="autorefresh" data-from-profile="<%= stash('from_profile') ? 1 : 0 %>">
% if ($journey->{checked_in}) {
<div class="card">
<div class="card-content">
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
- <span class="card-title"><%= $name %> ist unterwegs
- % if ($journey_visibility) {
- <i class="material-icons right"><%= visibility_icon($journey_visibility) %></i>
- % }
+ <span class="card-title">
+ % if (stash('from_profile')) {
+ Unterwegs mit <%= include '_format_train', journey => $journey %>
+ % }
+ % else {
+ <a href="/p/<%= $name %>"><%= $name %></a> ist unterwegs
+ % }
+ % if ($journey_visibility) {
+ <i class="material-icons right"><%= visibility_icon($journey_visibility) %></i>
+ % }
</span>
% if ($public_level & 0x04 and $journey->{comment}) {
<p>„<%= $journey->{comment} %>“</p>
% }
<p>
- <div class="center-align">
- % if ($journey->{train_line}) {
- <b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %>
- % }
- % else {
- <b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b>
- % }
- % if ($journey->{extra_data}{wagonorder_pride}) {
- 🏳️‍🌈
- % }
- </div>
+ % if (not stash('from_profile')) {
+ <div class="center-align">
+ %= include '_format_train', journey => $journey
+ </div>
+ % }
<div class="center-align countdown"
data-duration="<%= $journey->{journey_duration} // 0 %>"
% if (param('token')) {
@@ -176,7 +176,12 @@
<div class="card">
<div class="card-content">
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
- <span class="card-title"><%= $name %> ist gerade nicht eingecheckt</span>
+ % if (stash('from_profile')) {
+ <span class="card-title">Aktuell nicht eingecheckt</span>
+ % }
+ % else {
+ <span class="card-title"><a href="/p/<%= $name %>"><%= $name %></a> ist gerade nicht eingecheckt</span>
+ % }
<p>
% if ($journey->{arr_name}) {
Zuletzt gesehen