[% table_span = type == "people" ? 2 : 1 %] [% UNLESS type == "feeds" %] [% END %] [% IF type == "people" %] [% END %] [% FOREACH uid IN uids %] [% other_u = us.$uid %] [% NEXT UNLESS other_u %] [%# name %] [%# color %] [%# subscription status %] [% IF type == "people" %] [% END %] [%# ...and access/membership %] [% IF type=="people" %] [% END %] [% IF type == "people" %] [% ELSIF type == "comms" %] [% jointext = dw.ml('.circle.member') %] [% joinvals = { name => "editfriend_edit_${uid}_join", id => "editfriend_edit_${uid}_join", value => 1, autocomplete => "off"} %] [%# check membership %] [% IF is_member_of_userid.$uid %] [% SET jointext = dw.ml('.circle.admin') IF u.can_manage(other_u) %] [% joinvals.selected = 1 %] [% joinvals.disabled = u.can_leave( other_u ) ? 0 : 1 %] [% ELSE %] [% status = other_u.membership_level %] [% jointext = (status ? dw.ml(".circle.join.$status") : dw.ml('.circle.none')) %] [% IF status == 'moderated' %] [% jointext = jointext _ " " _ dw.ml( '.circle.join.apply', { aopts => "href='$site.root/circle/$other_u.user/edit'" } ) %] [% END %] [% joinvals.noescape = 1 %] [% joinvals.selected = 0 %] [% joinvals.disabled = u.can_leave( other_u ) ? 0 : 1 %] [% END %] [% joinvals.label = jointext %] [% END %] [% END %] [% UNLESS uids.size > 0 %] [% END %]
[% dw.ml(".circle.header.$type", { num => uids.size } ) %]
[% dw.ml('.table.header1') %]   [% dw.ml('.table.header2') %][% dw.ml(".table.header3.$type") %]
Subscribe Subscribes to You Give Access Gives You Access
[% form.hidden( name => "editfriend_edit_${uid}_user", value => 1 ) %] [% other_u.ljuser_display %]
[% other_u.last_updated %]
[% IF watch_list.$uid %] [% END %] [% IF watch_list.$uid || u.can_watch(other_u) %] [% form.checkbox( name => "editfriend_edit_${uid}_watch", value => 1, selected => watch_list.$uid ? 1 : 0, id => "editfriend_edit_${uid}_watch", label => dw.ml('.circle.subscribe') ) %] [% ELSE %] [% dw.ml('.circle.na') %] [% END %] [% IF is_watched_by_userid.$uid %] [% dw.ml('.circle.subscribe.y') %] [% ELSIF other_u.can_watch(u) %] [% dw.ml('.circle.subscribe.n') %] [% ELSE %] [% dw.ml('.circle.na') %] [% END %] [% IF trust_list.$uid || u.can_trust(other_u) %] [% form.checkbox( name => "editfriend_edit_${uid}_trust", value => 1, selected => trust_list.$uid ? 1 : 0, id => "editfriend_edit_${uid}_trust", label => dw.ml('.circle.access') ) %] [% ELSE %] [% dw.ml('.circle.na') %] [% END %] [% IF is_trusted_by_userid.$uid %] [% dw.ml('.circle.access.y') %] [% ELSIF other_u.can_trust(u) %] [% dw.ml('.circle.access.n') %] [% ELSE %] [% dw.ml('.circle.na') %] [% END %] [% form.checkbox(joinvals) %]
[% dw.ml('.circle.none') %]