summaryrefslogtreecommitdiff
path: root/templates/social_list.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 23:01:23 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 23:01:23 +0200
commit19cd9f7a8d888302d8637af897d407fc34bab522 (patch)
tree00f08bc56704ed8a952fefec9875979f5690b721 /templates/social_list.html.ep
parent49beb0922935b81a152477933a7f7cd03c76a90c (diff)
account: add a list of sent follow requests
Diffstat (limited to 'templates/social_list.html.ep')
-rw-r--r--templates/social_list.html.ep25
1 files changed, 22 insertions, 3 deletions
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') {
<div class="row">
<div class="col s12">
- <h2>Folge-Anfragen</h2>
+ <h2>Erhaltene Folge-Anfragen</h2>
</div>
</div>
% if ($notifications) {
@@ -52,6 +52,18 @@
</div>
-->
% }
+% elsif ($type eq 'follow-requests-sent') {
+ <div class="row">
+ <div class="col s12">
+ <h2>Gestellte Folge-Anfragen</h2>
+ </div>
+ </div>
+ <div class="row center-align">
+ <div class="col s12">
+ <i class="material-icons">cancel</i><br/> Zurücknehmen
+ </div>
+ </div>
+% }
% elsif ($type eq 'followers') {
<div class="row">
<div class="col s12">
@@ -168,7 +180,7 @@
% for my $entry (@{$entries}) {
<tr>
<td><a href="/p/<%= $entry->{name} %>"><%= $entry->{name} %></a></td>
- % if ($type eq 'follow-requests') {
+ % if ($type eq 'follow-requests-received') {
<td class="right-align">
<button class="btn-flat waves-effect waves-light" type="submit" name="block" value="<%= $entry->{id} %>">
<i class="material-icons" aria-label="blockieren">block</i>
@@ -185,6 +197,13 @@
</button>
</td>
% }
+ % elsif ($type eq 'follow-requests-sent') {
+ <td class="right-align">
+ <button class="btn-flat waves-effect waves-light" type="submit" name="cancel_follow_request" value="<%= $entry->{id} %>">
+ <i class="material-icons" aria-label="zurücknehmen">cancel</i>
+ </button>
+ </td>
+ % }
% elsif ($type eq 'followers') {
<td class="right-align">
<button class="btn-flat waves-effect waves-light" type="submit" name="block" value="<%= $entry->{id} %>">