Provide connection status if status is "a-normal"

This commit is contained in:
Mario Vavti 2015-07-26 20:54:09 +02:00
parent 7f2b5a08c0
commit f6142d18c4
2 changed files with 13 additions and 0 deletions

View File

@ -520,6 +520,7 @@ function connedit_content(&$a) {
'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/block', 'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/block',
'sel' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? 'active' : ''), 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? 'active' : ''),
'title' => t('Block (or Unblock) all communications with this connection'), 'title' => t('Block (or Unblock) all communications with this connection'),
'info' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? t('This connection is blocked!') : ''),
), ),
'ignore' => array( 'ignore' => array(
@ -527,6 +528,7 @@ function connedit_content(&$a) {
'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/ignore', 'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/ignore',
'sel' => (($contact['abook_flags'] & ABOOK_FLAG_IGNORED) ? 'active' : ''), 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_IGNORED) ? 'active' : ''),
'title' => t('Ignore (or Unignore) all inbound communications from this connection'), 'title' => t('Ignore (or Unignore) all inbound communications from this connection'),
'info' => (($contact['abook_flags'] & ABOOK_FLAG_IGNORED) ? t('This connection is ignored!') : ''),
), ),
'archive' => array( 'archive' => array(
@ -534,6 +536,7 @@ function connedit_content(&$a) {
'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/archive', 'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/archive',
'sel' => (($contact['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? 'active' : ''), 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? 'active' : ''),
'title' => t('Archive (or Unarchive) this connection - mark channel dead but keep content'), 'title' => t('Archive (or Unarchive) this connection - mark channel dead but keep content'),
'info' => (($contact['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? t('This connection is archived!') : ''),
), ),
'hide' => array( 'hide' => array(
@ -541,6 +544,7 @@ function connedit_content(&$a) {
'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/hide', 'url' => $a->get_baseurl(true) . '/connedit/' . $contact['abook_id'] . '/hide',
'sel' => (($contact['abook_flags'] & ABOOK_FLAG_HIDDEN) ? 'active' : ''), 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_HIDDEN) ? 'active' : ''),
'title' => t('Hide or Unhide this connection from your other connections'), 'title' => t('Hide or Unhide this connection from your other connections'),
'info' => (($contact['abook_flags'] & ABOOK_FLAG_HIDDEN) ? t('This connection is hidden!') : ''),
), ),
'delete' => array( 'delete' => array(

View File

@ -22,6 +22,15 @@
</div> </div>
<div class="section-content-wrapper-np"> <div class="section-content-wrapper-np">
{{if $notself}} {{if $notself}}
{{foreach $buttons as $b}}
{{if $b.info}}
<div class="section-content-danger-wrapper">
<div>
{{$b.info}}
</div>
</div>
{{/if}}
{{/foreach}}
<div class="section-content-info-wrapper"> <div class="section-content-info-wrapper">
<div> <div>
{{$addr_text}} <strong>'{{$addr}}'</strong> {{$addr_text}} <strong>'{{$addr}}'</strong>