From 19cd9f7a8d888302d8637af897d407fc34bab522 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 16 Jul 2023 23:01:23 +0200 Subject: account: add a list of sent follow requests --- templates/account.html.ep | 28 +++++++++++++++++++--------- templates/social_list.html.ep | 25 ++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index d3305a2..1da49be 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -92,10 +92,10 @@ % } % elsif ($acc->{accept_follow_requests}) { Accounts können dir auf Anfrage folgen - % if ($num_follow_requests == 1) { + % if ($num_rx_follow_requests == 1) { – eine offene Anfrage - % } elsif ($num_follow_requests) { - – <%= $num_follow_requests %> offene Anfragen + % } elsif ($num_rx_follow_requests) { + – <%= $num_rx_follow_requests %> offene Anfragen % } % } @@ -179,7 +179,7 @@ -% if ($num_follow_requests or $num_followers or $num_following or $num_blocked) { +% if ($num_rx_follow_requests or $num_tx_follow_requests or $num_followers or $num_following or $num_blocked) {

Interaktion

@@ -190,14 +190,24 @@ Anfragen - % if ($num_follow_requests == 0) { - keine offen + % if ($num_rx_follow_requests == 0) { + keine eingehend % } - % elsif ($num_follow_requests == 1) { - ein Account + % elsif ($num_rx_follow_requests == 1) { + eine eingehend % } % else { - <%= $num_follow_requests %> Accounts + <%= $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 % } diff --git a/templates/social_list.html.ep b/templates/social_list.html.ep index 9808512..1a3e441 100644 --- a/templates/social_list.html.ep +++ b/templates/social_list.html.ep @@ -2,10 +2,10 @@ %= csrf_field %= hidden_field redirect_to => '/account' % my $count = scalar @{$entries}; -% if ($type eq 'follow-requests') { +% if ($type eq 'follow-requests-received') {
-

Folge-Anfragen

+

Erhaltene Folge-Anfragen

% if ($notifications) { @@ -52,6 +52,18 @@
--> % } +% elsif ($type eq 'follow-requests-sent') { +
+
+

Gestellte Folge-Anfragen

+
+
+
+
+ cancel
Zurücknehmen +
+
+% } % elsif ($type eq 'followers') {
@@ -168,7 +180,7 @@ % for my $entry (@{$entries}) { <%= $entry->{name} %> - % if ($type eq 'follow-requests') { + % if ($type eq 'follow-requests-received') { % } + % elsif ($type eq 'follow-requests-sent') { + + + + % } % elsif ($type eq 'followers') {