2020-09-03 20:27:50 +00:00
|
|
|
% 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>
|
|
|
|
% }
|
2023-02-27 21:14:54 +00:00
|
|
|
<div class="row">
|
2023-06-04 16:21:36 +00:00
|
|
|
<div class="col s12">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title"><%= $name %>
|
|
|
|
% if ($following and $follows_me) {
|
|
|
|
<i class="material-icons right">group</i>
|
|
|
|
% }
|
|
|
|
% elsif ($follow_reqs_me) {
|
|
|
|
<span class="right">
|
|
|
|
<a href="/account/social/follow-requests"><i class="material-icons right">notifications</i></a>
|
|
|
|
</span>
|
|
|
|
% }
|
|
|
|
% elsif ($is_self) {
|
|
|
|
<a href="/account/profile"><i class="material-icons right">edit</i></a>
|
|
|
|
% }
|
|
|
|
</span>
|
|
|
|
% if ($bio) {
|
|
|
|
%== $bio
|
|
|
|
% }
|
|
|
|
% if (@{$metadata // []}) {
|
|
|
|
<table class="striped">
|
|
|
|
% for my $entry (@{$metadata}) {
|
|
|
|
<tr>
|
|
|
|
<th scope="row"><%= $entry->{key} %></th>
|
|
|
|
<td scope="row"><%== $entry->{value}{html} %></td>
|
|
|
|
</tr>
|
|
|
|
% }
|
|
|
|
</table>
|
|
|
|
% }
|
|
|
|
</div>
|
|
|
|
% if ($following or $follow_requested or $can_follow or $can_request_follow) {
|
|
|
|
<div class="card-action <%= ($can_follow or $can_request_follow) ? 'right-align' : q{} %>">
|
|
|
|
%= form_for "/social-action" => (method => 'POST') => begin
|
|
|
|
%= csrf_field
|
|
|
|
%= hidden_field target => $uid
|
|
|
|
%= hidden_field redirect_to => 'profile'
|
|
|
|
% if ($following) {
|
|
|
|
<button class="btn-flat waves-effect waves-light" type="submit" name="action" value="unfollow">
|
|
|
|
Nicht mehr folgen
|
|
|
|
</button>
|
|
|
|
% }
|
|
|
|
% elsif ($follow_requested) {
|
|
|
|
<button class="btn-flat waves-effect waves-light" type="submit" name="action" value="cancel_follow_request">
|
|
|
|
Folge-Anfrage zurücknehmen
|
|
|
|
</button>
|
|
|
|
% }
|
|
|
|
% elsif ($can_follow or $can_request_follow) {
|
|
|
|
<button class="btn-flat waves-effect waves-light" type="submit" name="action" value="follow_or_request">
|
|
|
|
<i class="material-icons left" aria-hidden="true">person_add</i>
|
|
|
|
% if ($follows_me) {
|
|
|
|
Zurückfolgen
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
Folgen
|
|
|
|
% }
|
|
|
|
% if ($can_request_follow) {
|
|
|
|
anfragen
|
|
|
|
% }
|
|
|
|
</button>
|
|
|
|
% }
|
|
|
|
%= end
|
|
|
|
</div>
|
|
|
|
% }
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12 publicstatuscol" data-user="<%= $name %>" data-profile="1">
|
|
|
|
%= include '_public_status_card', name => $name, public_level => $public_level, journey => $journey, journey_visibility => $journey_visibility, from_profile => 1
|
2020-09-03 20:27:50 +00:00
|
|
|
</div>
|
2023-02-27 21:14:54 +00:00
|
|
|
</div>
|
|
|
|
% if ($journeys and @{$journeys}) {
|
2020-09-03 20:27:50 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2023-06-04 16:21:36 +00:00
|
|
|
<h2>Vergangene Fahrten</h2>
|
2020-09-03 20:27:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-04 16:38:35 +00:00
|
|
|
%= include '_history_trains', date_format => '%d.%m.%Y', link_prefix => "/p/${name}/j/", journeys => $journeys;
|
2020-09-03 20:27:50 +00:00
|
|
|
% }
|
|
|
|
|
|
|
|
%= include '_footer', version => stash('version')
|