[%# communities/list.tt Conversion of htdocs/community/manage.bml Authors: Afuna Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. -%] [%- sections.title = ".title" | ml -%] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- dw.need_res( { group => "foundation" } "stc/css/components/tables-as-list.css" "stc/css/components/inline-lists.css" "stc/css/pages/communities/list.css" ) -%] [% IF community_list.size > 0 %] [% FOREACH comm = community_list %] [%- pend_mem_count = comm.pending_members_count || 0 -%] [% END %]
[% '.table.header.community' | ml %] [% '.table.header.settings' | ml %] [% '.table.header.moderation' | ml %]
[%- comm.ljuser -%]
[%- comm.title | html -%]
[%- IF comm.admin -%] [%- END -%] [%- IF pend_mem_count > 0 OR ( comm.moderator AND comm.show_mod_queue_count ) -%] [%- END -%]
[% ELSE %]
[% '.no.communities' | ml( create_url = site.root _ "/communities/new" ) %]
[% END %]