aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-01-15 12:08:04 +0100
committerMario Vavti <mario@mariovavti.com>2016-01-15 12:08:04 +0100
commitd36aa4fc89f99dc408e356347e74eead746f3e53 (patch)
tree40981ab6d04f9f0389cba076e354a342ac4adf11
parentf4e1b2123aed39e3f863ee327b27cb0e7f17520c (diff)
downloadvolse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.tar.gz
volse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.tar.bz2
volse-hubzilla-d36aa4fc89f99dc408e356347e74eead746f3e53.zip
provide a recent activity link in /connections
-rw-r--r--mod/connections.php6
-rwxr-xr-xview/tpl/connection_template.tpl2
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}}
<div class="contact-info-element">
- <span class="contact-info-label">{{$contact.network_label}}:</span> {{$contact.network}}
+ <span class="contact-info-label">{{$contact.network_label}}:</span> {{$contact.network}} - <a href="{{$contact.recentlink}}">{{$contact.recent_label}}</a>
</div>
{{/if}}
</div>