From 2202b4da89a7426ecf208a877ac9032bc44cd7ec Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 7 May 2013 13:58:00 +0800 Subject: Bug 869025: create a report to sanity check product's default security group --- .../en/default/hook/reports/menu-end.html.tmpl | 7 +++ .../pages/product_security_report.html.tmpl | 60 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 extensions/BMO/template/en/default/pages/product_security_report.html.tmpl (limited to 'extensions/BMO/template') diff --git a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl index 35644c1e4..93f04c4fa 100644 --- a/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl +++ b/extensions/BMO/template/en/default/hook/reports/menu-end.html.tmpl @@ -41,6 +41,13 @@ - Lists the users of groups. [% END %] + [% IF user.in_group('admin') || user.in_group('infrasec') %] +
  • + + Product Security Report + - Show each product's default security group and visibility. +
  • + [% END %] [% IF user.in_group('admin') || user.in_group('infra') %]
  • diff --git a/extensions/BMO/template/en/default/pages/product_security_report.html.tmpl b/extensions/BMO/template/en/default/pages/product_security_report.html.tmpl new file mode 100644 index 000000000..c87f6a418 --- /dev/null +++ b/extensions/BMO/template/en/default/pages/product_security_report.html.tmpl @@ -0,0 +1,60 @@ +[%# 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. + #%] + +[% INCLUDE global/header.html.tmpl + title = "Product Security Report" + style_urls = [ "extensions/BMO/web/styles/reports.css" ] +%] + + + + + + + + + + [% count = 0 %] + [% FOREACH product = products %] + [% count = count + 1 %] + + + [% IF product.group_problem %] + + [% ELSE %] + + [% END %] + [% IF product.visibility_problem %] + + [% ELSE %] + + [% END %] + + + [% END %] +
    ProductDefault Security GroupDefault Group VisibilityMozilla-Confidential
    + + [% product.name FILTER html %] + + + + [% product.default_security_group FILTER html %] + + + [% product.default_security_group FILTER html %] + + + [% product.group_visibility FILTER html %] + + + [% product.group_visibility FILTER html %] + + [% product.moco ? 'Yes' : 'No' FILTER none %] +
    + +[% INCLUDE global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b