]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/groupeditor.tpl
api: fix `friendica/notification/seen` api call
[friendica.git] / view / templates / groupeditor.tpl
index bde686040b5648fea1670f1ad2cb3c842b3be4ee..0168a7a2d73105e0ca989f3753e86d3b54dcf6cb 100644 (file)
@@ -1,6 +1,7 @@
 
 {{* Template for the contact group list *}}
 
+{{if $editable == 1}}
 {{* The contacts who are already members of the contact group *}}
 <div id="group">
        <h3>{{$groupeditor.label_members}}</h3>
        <div id="group-members-end"></div>
                <hr id="group-separator" />
 </div>
+{{/if}}
 
 {{* The contacts who are not members of the contact group *}}
 <div id="contacts">
        <h3>{{$groupeditor.label_contacts}}</h3>
        <div id="group-all-contacts" class="contact_list">
                {{foreach $groupeditor.contacts as $m}}
-                       {{* If there are too many contacts we use another view mode *}}
-                       {{if $shortmode}}
                        <div class="contact-block-textdiv mpall">
+                               {{if $editable == 1}}
                                <a class="contact-block-link mpall  fakelink" target="redir" onclick="groupChangeMember({{$m.change_member.gid}},{{$m.change_member.cid}},'{{$m.change_member.sec_token}}'); return true;" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
-                                       {{$m.name}}
+                               {{else}}
+                               <a class="contact-block-link mpall" href="{{$m.url}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
+                               {{/if}}
+                                       {{* If there are too many contacts we use another view mode *}}
+                                       {{if $shortmode}}
+                                               {{$m.name}}
+                                       {{else}}
+                                               <img class="contact-block-img mpall " src="{{$m.thumb}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
+                                       {{/if}}
                                </a>
                        </div>
-                       {{else}}
-                       {{* The normal view mode *}}
-                       <div class="contact-block-div mpall">
-                               <a class="contact-block-link mpall  fakelink" target="redir" onclick="groupChangeMember({{$m.change_member.gid}},{{$m.change_member.cid}},'{{$m.change_member.sec_token}}'); return true;">
-                                       <img class="contact-block-img mpall " src="{{$m.thumb}}" title="{{$m.name}} [{{$m.itemurl}}]" alt="{{$m.name}}">
-                               </a>
-                       </div>
-                       {{/if}}
                {{/foreach}}
        </div>
        <div id="group-all-contacts-end"></div>