From d2b251615f42ecda6eb10871b57329ed11b0e57b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 21 Feb 2012 16:21:49 +0800 Subject: bug 728811: add a report showing group membership --- .../en/default/pages/group_membership.html.tmpl | 75 ++++++++++++++++++++++ .../en/default/pages/group_membership.txt.tmpl | 16 +++++ 2 files changed, 91 insertions(+) create mode 100644 extensions/BMO/template/en/default/pages/group_membership.html.tmpl create mode 100644 extensions/BMO/template/en/default/pages/group_membership.txt.tmpl (limited to 'extensions/BMO/template/en/default/pages') diff --git a/extensions/BMO/template/en/default/pages/group_membership.html.tmpl b/extensions/BMO/template/en/default/pages/group_membership.html.tmpl new file mode 100644 index 000000000..2680c7da2 --- /dev/null +++ b/extensions/BMO/template/en/default/pages/group_membership.html.tmpl @@ -0,0 +1,75 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/header.html.tmpl + title = "Group Membership Report" + yui = [ 'autocomplete' ] + style_urls = [ "extensions/BMO/web/styles/reports.css" ] + javascript_urls = [ "js/field.js" ] +%] + +
+ + + + + + + + + + +
User(s): + [% INCLUDE global/userselect.html.tmpl + id => "who" + name => "who" + value => who.join(', ') + size => 40 + classes => ["bz_userfield"] + multiple => 5 + field_title => "One or more email address (comma delimited)" + %] +   + + + +
+ +
+ +[% IF users.size %] + + + [% FOREACH u = users %] + + + + [% FOREACH g = u.groups %] + + + + + + + [% END %] + [% END %] +
[% u.user.identity FILTER html %]
 [% g.name FILTER html %][% g.desc FILTER html %] + [% IF g.via == '' %] + direct + [% ELSE %] + [% g.via FILTER html %] + [% END %] +
+ +[% END %] + +[% INCLUDE global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/pages/group_membership.txt.tmpl b/extensions/BMO/template/en/default/pages/group_membership.txt.tmpl new file mode 100644 index 000000000..9958f0877 --- /dev/null +++ b/extensions/BMO/template/en/default/pages/group_membership.txt.tmpl @@ -0,0 +1,16 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% FOREACH u = users %] +[% u.user.login FILTER none%]: + [% FOREACH g = u.groups %] + [% g.name FILTER none %] + [% ',' UNLESS loop.last %] + [% END %] + [% "\n" %] +[% END %] -- cgit v1.2.3-24-g4f1b