summaryrefslogtreecommitdiff
path: root/templates/social_list.html.ep
diff options
context:
space:
mode:
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} %>">