[%# Contains the form for adding watch/trust edges for the person who invited you to the site, as well as join/watch edges for some of their relevant communities. Authors: Janine Smith 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'. %] [%- IF inviter -%]
[%- 'widget.createaccountinviter.title' | ml -%] [%- form.hidden( name = "from", value = inviter.user ) -%] [%- UNLESS inviter.from_promo -%] [%- IF inviter.can_add_trust -%] [%- END -%] [%- IF inviter.can_add_trust -%] [%- END -%] [%- END -%] [%- IF inviter.comms.size > 0 -%] [%- any_mm = ''; any_mod = '' -%] [%- FOREACH comm_data = inviter.comms -%] [%- LAST IF loop.count >= 20 -%] [%- comm_u = comm_data.u -%] [%- note_mm = comm_data.istatus == 'mm' ? ' *' : '' -%] [%- any_mm = any_mm || note_mm -%] [%- # we will only get moderated or open communities -%] [%- note_moderated = comm_u.is_moderated_membership ? ' **' : '' -%] [%- any_mod = any_mod || note_moderated -%] [%- END -%] [%- IF any_mm -%]
* [%- 'widget.createaccountinviter.addcomms.note.mm' | ml( user => inviter.ljuser_display ) -%]
[%- END -%] [%- IF any_mod -%]
** [%- 'widget.createaccountinviter.addcomms.note.moderated' | ml -%]
[%- END -%] [%- END -%]
[%- END -%]