% if (my $invalid = flash('invalid')) { %= include '_invalid_input', invalid => $invalid % } % if (my $success = flash('success')) {
% if ($success eq 'name') { <%= L('account.changed-name') %> % } % elsif ($success eq 'mail') { <%= L('account.changed-mail') %> % } % elsif ($success eq 'password') { <%= L('account.changed-password') %> % } % elsif ($success eq 'language') { <%= L('account.changed-language') %> % } % elsif ($success eq 'privacy') { <%= L('account.changed-privacy') %> % } % elsif ($success eq 'social') { <%= L('account.changed-social') %> % } % elsif ($success eq 'traewelling') { <%= L('account.changed-traewelling') %> % } % elsif ($success eq 'use_history') { <%= L('account.changed-history') %> % } % elsif ($success eq 'webhook') { <%= L('account.changed-webhook') %> % } % elsif ($success eq 'clear_notifications') { <%= L('account.cleared-notifications') %> % }
% } % my $acc = current_user(); % my $hook = users->get_webhook(uid => $acc->{id}); % my $traewelling = traewelling->get(uid => $acc->{id}); % my $use_history = users->use_history(uid => $acc->{id});

<%= L('account.account') %>

% if (config->{traewelling}{oauth}) { % }
<%= L('account.name') %> edit<%= $acc->{name} %>
<%= L('account.mail') %> edit<%= $acc->{email} %>
<%= L('account.password') %> edit
<%= L('account.language') %> edit<%= $acc->{languages}[0] // q{} %>
<%= L('account.connections') %> edit % if ($use_history & 0x03) { %= L('account.connections.enabled') % } % else { <%= L('account.connections.disabled') %> % }
<%= L('account.visibility') %> edit check<%= visibility_icon($acc->{default_visibility_str}) %>history<%= visibility_icon($acc->{past_visibility_str}) %>
<%= L('account.interaction') %> edit % if ($acc->{accept_follows}) { <%= L('account.interaction.accept-follows') %> % } % elsif ($acc->{accept_follow_requests}) { <%= L('account.interaction.accept-follow-requests') %> % if ($num_rx_follow_requests == 1) { – <%= L('account.interaction.one') %> <%= L('account.interaction.open-request') %> % } elsif ($num_rx_follow_requests) { – <%= $num_rx_follow_requests %> <%= L('account.interaction.open-requests') %> % } % } % else { <%= L('account.interaction.disabled') %> % }
<%= L('account.webhook') %> edit % if (not $hook->{enabled}) { <%= L('account.webhook.disabled') %> % } % elsif ($hook->{latest_run}->epoch == 0) { <%= L('account.webhook.active_pending') %> % } % elsif ($hook->{errored}) { <%= L('account.webhook.active_error') %> % } % else { <%= L('account.webhook.active') %> % }
Träwelling <%= L('account.traewelling.unsupported') %>
<%= L('account.registration_date') %> <%= $acc->{registered_at}->strftime(L('strftime.datetime')) %>
%= form_for 'logout' => begin %= csrf_field %= end
% if ($num_rx_follow_requests or $num_tx_follow_requests or $num_followers or $num_following or $num_blocked) {

Interaktion

Öffentliches Profil

Anfragen % if ($num_rx_follow_requests == 0) { keine eingehend % } % elsif ($num_rx_follow_requests == 1) { eine eingehend % } % else { <%= $num_rx_follow_requests %> eingehend % }
% if ($num_tx_follow_requests == 0) { keine ausgehend % } % elsif ($num_tx_follow_requests == 1) { eine ausgehend % } % else { <%= $num_tx_follow_requests %> ausgehend % }
Dir folg<%= $num_followers == 1 ? 't' : 'en' %> % if ($num_followers == 0) { keine Accounts % } % elsif ($num_followers == 1) { ein Account % } % else { <%= $num_followers %> Accounts % }
Du folgst % if ($num_following == 0) { keinen Accounts % } % elsif ($num_following == 1) { einem Account % } % else { <%= $num_following %> Accounts % }
Blockiert % if ($num_blocked == 0) { keine Accounts % } % elsif ($num_blocked == 1) { ein Account % } % else { <%= $num_blocked %> Accounts % }
% } % else {
Öffentliches Profil
% } % my $token = stash('api_token') // {};

API

Die folgenden API-Token erlauben den passwortlosen automatisierten Zugriff auf API-Endpunkte. Bitte umsichtig behandeln – sobald ein Token gesetzt ist, können damit ohne Logindaten alle zugehörigen API-Aktionen ausgeführt werden. Dokumentation.

Status % if ($token->{status}) { %= $acc->{id} . '-' . $token->{status} % } % else { — % } %= form_for 'set_token' => begin %= csrf_field %= hidden_field 'token' => 'status' %= end
Travel % if ($token->{travel}) { %= $acc->{id} . '-' . $token->{travel} % } % else { — % } %= form_for 'set_token' => begin %= csrf_field %= hidden_field 'token' => 'travel' %= end
Import % if ($token->{import}) { %= $acc->{id} . '-' . $token->{import} % } % else { — % } %= form_for 'set_token' => begin %= csrf_field %= hidden_field 'token' => 'import' %= end

Export

% if (not $acc->{deletion_requested}) {

Löschen

Der Löschauftrag wird vorgemerkt und erst nach drei Tagen umgesetzt, bis dahin kann er jederzeit zurückgenommen werden. Nach Ablauf der drei Tage wird der Account mit allen zugehörigen Reisedaten ohne weitere Rückfragen entfernt.

%= form_for 'delete' => begin
lock %= password_field 'password', id => 'password', class => 'validate', required => undef, autocomplete => 'current-password'
%= csrf_field
%= end
% }