From d36aa4fc89f99dc408e356347e74eead746f3e53 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 15 Jan 2016 12:08:04 +0100 Subject: provide a recent activity link in /connections --- mod/connections.php | 6 ++++-- view/tpl/connection_template.tpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mod/connections.php b/mod/connections.php index 3297ae8f8..f43dec73e 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -255,7 +255,7 @@ function connections_content(&$a) { 'name' => $rr['xchan_name'], 'classes' => (intval($rr['abook_archived']) ? 'archived' : ''), 'link' => z_root() . '/connedit/' . $rr['abook_id'], - 'deletelink' => z_root() . '/connedit/' . $rr['abook_id'] . '/drop', + 'deletelink' => z_root() . '/connedit/' . intval($rr['abook_id']) . '/drop', 'delete' => t('Delete'), 'url' => chanlink_url($rr['xchan_url']), 'webbie_label' => t('Channel address'), @@ -268,7 +268,9 @@ function connections_content(&$a) { 'connected_label' => t('Connected'), 'connected' => datetime_convert('UTC',date_default_timezone_get(),$rr['abook_created'], 'c'), 'approve_hover' => t('Approve connection'), - 'approve' => (($rr['abook_pending']) ? t('Approve') : false) + 'approve' => (($rr['abook_pending']) ? t('Approve') : false), + 'recent_label' => t('Recent activity'), + 'recentlink' => z_root() . '/network/?f=&cid=' . intval($rr['abook_id']) ); } } diff --git a/view/tpl/connection_template.tpl b/view/tpl/connection_template.tpl index 2629e5cf4..143989971 100755 --- a/view/tpl/connection_template.tpl +++ b/view/tpl/connection_template.tpl @@ -35,7 +35,7 @@ {{/if}} {{if $contact.network}}
- {{$contact.network_label}}: {{$contact.network}} + {{$contact.network_label}}: {{$contact.network}} - {{$contact.recent_label}}
{{/if}} -- cgit v1.2.3