X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fgroupeditor.tpl;h=0168a7a2d73105e0ca989f3753e86d3b54dcf6cb;hb=a68c790c645f41e2c6a579d4d4485f864a1d06cd;hp=4fad30d5a3d8c43de1198752405744e18a3386a1;hpb=eef66da1453940ec646cae2de5cd863a2c10e24d;p=friendica.git diff --git a/view/templates/groupeditor.tpl b/view/templates/groupeditor.tpl index 4fad30d5a3..0168a7a2d7 100644 --- a/view/templates/groupeditor.tpl +++ b/view/templates/groupeditor.tpl @@ -1,21 +1,62 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} + +{{* Template for the contact group list *}} + +{{if $editable == 1}} +{{* The contacts who are already members of the contact group *}}
-

{{$groupeditor.label_members}}

-
-{{foreach $groupeditor.members as $c}} {{$c}} {{/foreach}} -
-
-
+

{{$groupeditor.label_members}}

+
+ + {{if $groupeditor.members }} + + {{foreach $groupeditor.members as $c}} + {{* If there are too many contacts we use another view mode *}} + {{if $shortmode}} + + {{else}} + {{* The normal view mode *}} +
+ + {{$c.name}} + +
+ {{/if}} + {{/foreach}} + + {{else}} + {{$groupeditor.group_is_empty}} + {{/if}} +
+ +
+
+{{/if}} +{{* The contacts who are not members of the contact group *}}
-

{{$groupeditor.label_contacts}}

-
-{{foreach $groupeditor.contacts as $m}} {{$m}} {{/foreach}} -
-
+

{{$groupeditor.label_contacts}}

+
+ {{foreach $groupeditor.contacts as $m}} + + {{/foreach}} +
+