X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fgroupeditor.tpl;h=0168a7a2d73105e0ca989f3753e86d3b54dcf6cb;hb=5790a0c58a5d044c9c0cba8496db07fa7d0bc0b6;hp=86458ded2e0d81c0151cd3b5b27ee7a3481250b4;hpb=9ab5bfb5074ddba22777c3b043bb539a473288a5;p=friendica.git diff --git a/view/templates/groupeditor.tpl b/view/templates/groupeditor.tpl index 86458ded2e..0168a7a2d7 100644 --- a/view/templates/groupeditor.tpl +++ b/view/templates/groupeditor.tpl @@ -1,21 +1,62 @@ +{{* Template for the contact group list *}} + +{{if $editable == 1}} +{{* The contacts who are already members of the contact group *}}
-

{{$groupeditor.label_members}}

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

{{$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}} +
+