aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-24 18:36:38 -0800
committerredmatrix <git@macgirvin.com>2016-01-24 18:36:38 -0800
commit9081ddb455993cef96e121cebb2f569ae63a50f3 (patch)
treeaaea10d2f65c839c43fe1b058f1729ed08c237c5
parent1ccf836ebbc67a2eaf0a7c43a88c17235c94aef6 (diff)
downloadvolse-hubzilla-9081ddb455993cef96e121cebb2f569ae63a50f3.tar.gz
volse-hubzilla-9081ddb455993cef96e121cebb2f569ae63a50f3.tar.bz2
volse-hubzilla-9081ddb455993cef96e121cebb2f569ae63a50f3.zip
don't provide notification icons on manage page for delegated channels
-rw-r--r--mod/manage.php1
-rwxr-xr-xview/tpl/channel.tpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/mod/manage.php b/mod/manage.php
index 0a0cfe921..671003efd 100644
--- a/mod/manage.php
+++ b/mod/manage.php
@@ -149,6 +149,7 @@ function manage_content(&$a) {
$delegates[$x]['link'] = 'magic?f=&dest=' . urlencode($delegates[$x]['xchan_url'])
. '&delegate=' . urlencode($delegates[$x]['xchan_addr']);
$delegates[$x]['channel_name'] = $delegates[$x]['xchan_name'];
+ $delegates[$x]['delegate'] = 1;
}
}
else {
diff --git a/view/tpl/channel.tpl b/view/tpl/channel.tpl
index af80e7b4d..23f1e0dd4 100755
--- a/view/tpl/channel.tpl
+++ b/view/tpl/channel.tpl
@@ -7,6 +7,6 @@
{{/if}}
{{/if}}
<a href="{{$channel.link}}" class="channel-selection-photo-link" title="{{$channel.channel_name}}"><img class="channel-photo" src="{{$channel.xchan_photo_m}}" alt="{{$channel.channel_name}}" /></a>
-<div class="channels-notifications-wrapper"><a href='manage/{{$channel.channel_id}}/message' style="{{if $channel.mail != 0}}color:#c60032;{{/if}}" title='{{$channel.mail|string_format:$mail_format}}'><i class="icon-envelope"></i> {{$channel.mail}}</a>&nbsp;<a href='manage/{{$channel.channel_id}}/connections/ifpending' style="{{if $channel.intros != 0}}color:#c60032;{{/if}}" title='{{$channel.intros|string_format:$intros_format}}'><i class="icon-user"></i> {{$channel.intros}}</a></div>
+<div class="channels-notifications-wrapper">{{if $channel.delegate}}{{else}}<a href='manage/{{$channel.channel_id}}/message' style="{{if $channel.mail != 0}}color:#c60032;{{/if}}" title='{{$channel.mail|string_format:$mail_format}}'><i class="icon-envelope"></i> {{$channel.mail}}</a>&nbsp;<a href='manage/{{$channel.channel_id}}/connections/ifpending' style="{{if $channel.intros != 0}}color:#c60032;{{/if}}" title='{{$channel.intros|string_format:$intros_format}}'><i class="icon-user"></i> {{$channel.intros}}</a>{{/if}}</div>
<a href="{{$channel.link}}" class="channel-selection-name-link" title="{{$channel.channel_name}}"><div class="channel-name">{{$channel.channel_name}}</div></a>
</div>