aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-26 16:57:36 -0800
committerredmatrix <git@macgirvin.com>2016-01-26 16:57:36 -0800
commit9b08051703ff6695ba989f1cb968200ca59daeb1 (patch)
tree745af4986ad5d93c17d459c857ab21ac898197cb /view/tpl
parent9c71b74d373001ac47add095fc204bddb25ee91d (diff)
downloadvolse-hubzilla-9b08051703ff6695ba989f1cb968200ca59daeb1.tar.gz
volse-hubzilla-9b08051703ff6695ba989f1cb968200ca59daeb1.tar.bz2
volse-hubzilla-9b08051703ff6695ba989f1cb968200ca59daeb1.zip
bring back the ability to ignore a pending connection request without deleting it and without always having it in your face and without jumping through hoops.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/connection_template.tpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl
index 143989971..b2107306e 100755
--- a/view/tpl/connection_template.tpl
+++ b/view/tpl/connection_template.tpl
@@ -1,9 +1,12 @@
<div id="contact-entry-wrapper-{{$contact.id}}">
<div class="section-subtitle-wrapper">
<div class="pull-right">
- {{if $contact.approve}}
+ {{if $contact.approve && $contact.ignore}}
<form action="connedit/{{$contact.id}}" method="post" >
<button type="submit" class="btn btn-success btn-xs" name="pending" value="1" title="{{$contact.approve_hover}}"><i class="icon-ok"></i> {{$contact.approve}}</button>
+
+ <a href="connedit/{{$contact.id}}/ignore" class="btn btn-danger btn-xs" title={{$contact.ignore_hover}}><i class="icon-ban-circle"></i> {{$contact.ignore}}</a>
+
{{/if}}
<a href="#" class="btn btn-danger btn-xs" title="{{$contact.delete_hover}}" onclick="dropItem('{{$contact.deletelink}}', '#contact-entry-wrapper-{{$contact.id}}'); return false;"><i class="icon-trash"></i> {{$contact.delete}}</a>
<a href="{{$contact.link}}" class="btn btn-default btn-xs" title="{{$contact.edit_hover}}"><i class="icon-pencil"></i></a>