Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.7 KiB

  1. <div class="widget" id="group-sidebar">
  2. <h3>{{$title}}</h3>
  3. <div id="sidebar-group-list">
  4. <ul role="menu" id="sidebar-group-ul">
  5. {{foreach $groups as $group}}
  6. <li role="menuitem" class="sidebar-group-li group-{{$group.id}}">
  7. {{if ! $newgroup}}<span class="notify badge pull-right"></span>{{/if}}
  8. {{if $group.cid}}
  9. <input type="checkbox"
  10. class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
  11. onclick="contactgroupChangeMember('{{$group.id}}','{{$group.cid}}');return true;"
  12. {{if $group.ismember}}checked="checked"{{/if}}
  13. />
  14. {{/if}}
  15. {{if $group.edit}}
  16. <a class="groupsideedit" href="{{$group.edit.href}}" title="{{$edittext}}">
  17. <span id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-icon iconspacer small-pencil"><span class="sr-only">{{$edittext}}</span></span>
  18. </a>
  19. {{/if}}
  20. <a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element {{if $group.selected}}group-selected{{/if}}" href="{{$group.href}}">{{$group.text}}</a>
  21. </li>
  22. {{/foreach}}
  23. </ul>
  24. </div>
  25. {{if $newgroup}}
  26. <div id="sidebar-new-group">
  27. <a onclick="javascript:$('#group-new-form').fadeIn('fast');return false;">{{$createtext}}</a>
  28. <form id="group-new-form" action="group/new" method="post" style="display:none;">
  29. <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
  30. <input name="groupname" id="id_groupname" placeholder="{{$creategroup}}">
  31. </form>
  32. </div>
  33. {{else}}
  34. <div id="sidebar-edit-groups"><a href="{{$grouppage}}">{{$editgroupstext}}</a></div>
  35. {{/if}}
  36. {{if $ungrouped}}<div id="sidebar-ungrouped"><a href="nogroup">{{$ungrouped}}</a></div>{{/if}}
  37. </div>