X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fgroupeditor.tpl;h=0168a7a2d73105e0ca989f3753e86d3b54dcf6cb;hb=5790a0c58a5d044c9c0cba8496db07fa7d0bc0b6;hp=b0f267dde9116de2b03e3b347a59df39d63a2aee;hpb=6679d188263b6b717d318a9ab4c914265bcb0c1e;p=friendica.git diff --git a/view/templates/groupeditor.tpl b/view/templates/groupeditor.tpl index b0f267dde9..0168a7a2d7 100644 --- a/view/templates/groupeditor.tpl +++ b/view/templates/groupeditor.tpl @@ -1,17 +1,62 @@ +{{* 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}} +
+