From fa7ae98d1b2e83e88b2861f0826dc89e5b3bbd63 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 11 Aug 2015 13:31:49 -0400 Subject: Bug 1184332 - Add Restricted API calls for MozReview --- .../en/default/admin/params/mozreview.html.tmpl | 20 ++++++++++++++++++++ .../admin/params/editparams-current_panel.html.tmpl | 12 ------------ 2 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 extensions/MozReview/template/en/default/admin/params/mozreview.html.tmpl delete mode 100644 extensions/MozReview/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl (limited to 'extensions/MozReview/template/en') diff --git a/extensions/MozReview/template/en/default/admin/params/mozreview.html.tmpl b/extensions/MozReview/template/en/default/admin/params/mozreview.html.tmpl new file mode 100644 index 000000000..4a35555a4 --- /dev/null +++ b/extensions/MozReview/template/en/default/admin/params/mozreview.html.tmpl @@ -0,0 +1,20 @@ +[%# 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. + #%] + +[% + title = "MozReview" + desc = "Configure MozReview" +%] + +[% + param_descs = { + mozreview_base_url => 'MozReview Base URL', + mozreview_auth_callback_url => 'MozReview Auth Delegation URL', + mozreview_app_id => 'app_id for API Keys delegated to MozReview', + } +%] diff --git a/extensions/MozReview/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl b/extensions/MozReview/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl deleted file mode 100644 index eb08f26eb..000000000 --- a/extensions/MozReview/template/en/default/hook/admin/params/editparams-current_panel.html.tmpl +++ /dev/null @@ -1,12 +0,0 @@ -[%# 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. - #%] - -[% IF panel.name == "advanced" %] - [% panel.param_descs.mozreview_base_url = 'MozReview Base URL' %] - [% panel.param_descs.mozreview_auth_callback_url = 'MozReview Auth Delegation URL' %] -[% END -%] -- cgit v1.2.3-24-g4f1b