_mentors: [
[% FOREACH u = mentors %]
[% NEXT IF NOT u.is_active %]
+ [% NEXT IF u.id == user.id %]
[% PROCESS reviewer %][% "," UNLESS loop.last %]
[% END %]
],
[% IF product_obj.reviewers %]
_product: [
[% FOREACH u = product_obj.reviewers_objs %]
+ [% NEXT IF u.id == user.id %]
[% PROCESS reviewer %][% "," UNLESS loop.last %]
[% END %]
],
[%# single component (create/edit attachment) %]
'[% component_obj.name FILTER js %]': [
[% FOREACH u = component_obj.reviewers_objs %]
+ [% NEXT IF u.id == user.id %]
[% PROCESS reviewer %][% "," UNLESS loop.last %]
[% END %]
],
[% NEXT UNLESS c.reviewers %]
'[% c.name FILTER js %]': [
[% FOREACH u = c.reviewers_objs %]
+ [% NEXT IF u.id == user.id %]
[% PROCESS reviewer %][% "," UNLESS loop.last %]
[% END %]
],