From: Kohei Yoshino Date: Tue, 16 Oct 2018 03:56:01 +0000 (-0400) Subject: Bug 1497077 - Convert links to absolute path X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56b4639601bbb91ffef70156a5a91114a584eb6d;p=thirdparty%2Fbugzilla.git Bug 1497077 - Convert links to absolute path --- diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index 6650eca279..08cd9e80be 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -305,6 +305,13 @@ sub read_localconfig { # Use the site's URL as the default Canonical URL $config->{canonical_urlbase} //= $config->{urlbase}; + # Get the absolute path of the URLBase value + $config->{basepath} = do { + my $path = $config->{urlbase}; + $path =~ s/^https?:\/\/.*?\//\//; + $path; + }; + return $config; } diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index c337b5af8c..9d2296cc8c 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -285,8 +285,8 @@ sub get_attachment_link { $link_text =~ s/ \[details\]$//; $link_text =~ s/ \[diff\]$//; - state $urlbase = Bugzilla->localconfig->{urlbase}; - my $linkval = "${urlbase}attachment.cgi?id=$attachid"; + state $basepath = Bugzilla->localconfig->{basepath}; + my $linkval = "${basepath}attachment.cgi?id=$attachid"; # If the attachment is a patch and patch_viewer feature is # enabled, add link to the diff. @@ -368,7 +368,7 @@ sub multiline_sprintf { sub version_filter { my ($file_url) = @_; - return "static/v" . Bugzilla->VERSION . "/$file_url"; + return Bugzilla->localconfig->{basepath} . "static/v" . Bugzilla->VERSION . "/$file_url"; } # Set up the skin CSS cascade: @@ -928,6 +928,9 @@ sub create { # Allow templates to access the "corect" URLBase value 'urlbase' => sub { return Bugzilla->localconfig->{urlbase}; }, + # Allow templates to get the absolute path of the URLBase value + 'basepath' => sub { return Bugzilla->localconfig->{basepath}; }, + # Allow templates to access docs url with users' preferred language 'docs_urlbase' => sub { my $language = Bugzilla->current_language; diff --git a/extensions/AntiSpam/template/en/default/hook/admin/admin-end_links_right.html.tmpl b/extensions/AntiSpam/template/en/default/hook/admin/admin-end_links_right.html.tmpl index 2bca45d073..2efa8e59f7 100644 --- a/extensions/AntiSpam/template/en/default/hook/admin/admin-end_links_right.html.tmpl +++ b/extensions/AntiSpam/template/en/default/hook/admin/admin-end_links_right.html.tmpl @@ -9,8 +9,8 @@ [% IF user.in_group('can_configure_antispam') %]
AntiSpam
- Domain Blocklist
- Comment Blocklist
- IP Address Blocklist
+ Domain Blocklist
+ Comment Blocklist
+ IP Address Blocklist
[% END %] diff --git a/extensions/BMO/template/en/default/account/create.html.tmpl b/extensions/BMO/template/en/default/account/create.html.tmpl index fa897e0e88..cebdd81fc3 100644 --- a/extensions/BMO/template/en/default/account/create.html.tmpl +++ b/extensions/BMO/template/en/default/account/create.html.tmpl @@ -133,7 +133,7 @@ function onSubmit() { and Communications Terms of Use for more information.
  • - You understand that your conduct on this site is subject to both [% terms.Bugzilla %] Etiquette, + You understand that your conduct on this site is subject to both [% terms.Bugzilla %] Etiquette, and the Mozilla Community Participation Guidelines. By creating an account, you agree to abide by them.
  • @@ -146,7 +146,7 @@ function onSubmit() {

    Create an account

    -
    + @@ -158,7 +158,7 @@ function onSubmit() { @@ -23,7 +23,7 @@ [% IF bug.missing_sec_approval %] diff --git a/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl index 8e94229ff6..53fb1e41ff 100644 --- a/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug_modal/attachments-warnings.html.tmpl @@ -13,14 +13,14 @@ [% IF bug.is_unassigned %]
    - + Unassigned [% terms.bug %] with patches attached
    [% END %] [% IF bug.missing_sec_approval %]
    - + sec-approval required on patches before landing diff --git a/extensions/BMO/template/en/default/hook/bug_modal/edit-top_actions.html.tmpl b/extensions/BMO/template/en/default/hook/bug_modal/edit-top_actions.html.tmpl index b096644c9d..7f24642290 100644 --- a/extensions/BMO/template/en/default/hook/bug_modal/edit-top_actions.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug_modal/edit-top_actions.html.tmpl @@ -16,6 +16,6 @@ END; END; %] -| +| [% has_bounty_attachment ? "Edit" : "Add" %] Bounty Tracking Attachment diff --git a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl index 6300b0d15e..3d6d11a5c6 100644 --- a/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/header-additional_header.html.tmpl @@ -19,7 +19,7 @@ # Reed Loden #%] - + [% IF bug %] @@ -31,23 +31,23 @@ [% IF my_search %] [% SET last_bug_list = my_search.bug_list %] [% SET this_bug_idx = lsearch(last_bug_list, bug.id) %] - - - [% IF this_bug_idx > 0 %] [% prev_bug = this_bug_idx - 1 %] - [% END %] [% IF this_bug_idx + 1 < last_bug_list.size %] [% next_bug = this_bug_idx + 1 %] - [% END %] diff --git a/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl b/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl index c7fb31009f..673ac4ee70 100644 --- a/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/user-error-error_message.html.tmpl @@ -9,7 +9,7 @@ [% IF error == 'illegal_change' || error == 'illegal_change_deps' %]

    If you are attempting to confirm an unconfirmed [% terms.bug %] or edit the - fields of a [% terms.bug %], find + fields of a [% terms.bug %], find out how to get the necessary permissions.

    [% END %] diff --git a/extensions/BMO/template/en/default/hook/global/user-error.html.tmpl/auth_failure/permissions.html.tmpl b/extensions/BMO/template/en/default/hook/global/user-error.html.tmpl/auth_failure/permissions.html.tmpl index d527f76a47..0478367d53 100644 --- a/extensions/BMO/template/en/default/hook/global/user-error.html.tmpl/auth_failure/permissions.html.tmpl +++ b/extensions/BMO/template/en/default/hook/global/user-error.html.tmpl/auth_failure/permissions.html.tmpl @@ -23,7 +23,7 @@ [% IF (group == "canconfirm" OR group == "editbugs") AND !reason %]

    If you are attempting to confirm an unconfirmed [% terms.bug %] or edit the fields of a [% terms.bug %], - find + find out how to get the necessary permissions.

    [% END %] diff --git a/extensions/BMO/template/en/default/hook/list/list-links.html.tmpl b/extensions/BMO/template/en/default/hook/list/list-links.html.tmpl index c6e43c158c..b96b6354f7 100644 --- a/extensions/BMO/template/en/default/hook/list/list-links.html.tmpl +++ b/extensions/BMO/template/en/default/hook/list/list-links.html.tmpl @@ -6,6 +6,6 @@ # defined by the Mozilla Public License, v. 2.0. #%] -REST | 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 8252633504..580d6351f7 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 @@ -10,12 +10,12 @@ @@ -25,58 +25,58 @@
    • - User Changes + User Changes - Show changes made by an individual user.
    • - Release Tracking Report + Release Tracking Report - For triaging release-train flag information.
    • [% IF user.in_group('editbugs') %]
    • - Group Admins + Group Admins - Lists the administrators of each group.
    • [% END %] [% IF user.in_group('editusers') || user.in_group('infrasec') %]
    • - Group Membership Report + Group Membership Report - Lists the groups a user is a member of.
    • [% END %] [% IF user.in_group('editbugs') %]
    • - Group Members Report + Group Members Report - Lists the users of groups.
    • [% END %] [% IF user.in_group('admin') || user.in_group('infrasec') %]
    • - Product Security Report + Product Security Report - Show each product's default security group and visibility.
    • [% END %] [% IF user.in_group('admin') || user.in_group('infra') %]
    • - Email Queue + Email Queue - TheSchwartz queue
    • [% END %] [% IF user.in_group('hr') %]
    • - Recruiting Dashboard + Recruiting Dashboard - Dashboard for open requested requisitions.
    • - Internship Dashboard + Internship Dashboard - Dashboard for open intern requisitions.
    • diff --git a/extensions/BMO/template/en/default/list/server-push.html.tmpl b/extensions/BMO/template/en/default/list/server-push.html.tmpl index 1c1f3cf362..f017196dee 100644 --- a/extensions/BMO/template/en/default/list/server-push.html.tmpl +++ b/extensions/BMO/template/en/default/list/server-push.html.tmpl @@ -32,7 +32,7 @@
      -

      Please wait while your [% terms.bugs %] are retrieved.

      diff --git a/extensions/BMO/template/en/default/pages/attachment_bounty_form.html.tmpl b/extensions/BMO/template/en/default/pages/attachment_bounty_form.html.tmpl index 0f7966097f..1f6ad09dc5 100644 --- a/extensions/BMO/template/en/default/pages/attachment_bounty_form.html.tmpl +++ b/extensions/BMO/template/en/default/pages/attachment_bounty_form.html.tmpl @@ -129,7 +129,7 @@ function validateAndSubmit() { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - diff --git a/extensions/BMO/template/en/default/pages/etiquette.html.tmpl b/extensions/BMO/template/en/default/pages/etiquette.html.tmpl index 45dd5bd659..082f7c4c9b 100644 --- a/extensions/BMO/template/en/default/pages/etiquette.html.tmpl +++ b/extensions/BMO/template/en/default/pages/etiquette.html.tmpl @@ -148,7 +148,7 @@

      If you cannot tag comments (which requires - editbugs privileges,) + editbugs privileges,) or if you need to contact a [% terms.Bugzilla %] community administrator urgently:

      diff --git a/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl b/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl index f4f8013429..42f37583f7 100644 --- a/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl +++ b/extensions/BMO/template/en/default/pages/get_permissions.html.tmpl @@ -14,7 +14,7 @@

      If you want canconfirm, you can add it yourself using - the triage request form. + the triage request form.

      [% editbugs = "enter_bug.cgi?assigned_to=nobody%40mozilla.org&bug_file_loc=http%3A%2F%2F&bug_ignored=0&bug_severity=normal&bug_status=NEW&cf_fx_iteration=---&cf_fx_points=---&component=Editbugs%20Requests&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&defined_groups=1&flag_type-4=X&flag_type-607=X&flag_type-791=X&flag_type-800=X&flag_type-803=X&flag_type-916=X&form_name=enter_bug&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Unspecified&priority=--&product=bugzilla.mozilla.org&rep_platform=Unspecified&target_milestone=---&version=Production" %] diff --git a/extensions/BMO/template/en/default/pages/group_members.html.tmpl b/extensions/BMO/template/en/default/pages/group_members.html.tmpl index 1c593c07e8..602c862cd0 100644 --- a/extensions/BMO/template/en/default/pages/group_members.html.tmpl +++ b/extensions/BMO/template/en/default/pages/group_members.html.tmpl @@ -11,7 +11,7 @@ style_urls = [ "extensions/BMO/web/styles/reports.css" ] %] - +
    Email Address: @@ -192,7 +192,7 @@ function onSubmit() {
    diff --git a/extensions/BMO/template/en/default/bug/create/create-automative.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-automative.html.tmpl index d1ed4b4b54..29014c09c1 100644 --- a/extensions/BMO/template/en/default/bug/create/create-automative.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-automative.html.tmpl @@ -92,7 +92,7 @@ function validateAndSubmit() { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - diff --git a/extensions/BMO/template/en/default/bug/create/create-client-bounty.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-client-bounty.html.tmpl index 0f1a000aff..14cc7b94e0 100644 --- a/extensions/BMO/template/en/default/bug/create/create-client-bounty.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-client-bounty.html.tmpl @@ -111,7 +111,7 @@ function validateAndSubmit() {

    Client [% terms.Bug %] Bounty Form

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl index 5e1a13c9a9..a51f8d7410 100644 --- a/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-comm-newsletter.html.tmpl @@ -86,7 +86,7 @@ function toggleAreaOther() { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - diff --git a/extensions/BMO/template/en/default/bug/create/create-costume.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-costume.html.tmpl index 732af26294..8263287323 100644 --- a/extensions/BMO/template/en/default/bug/create/create-costume.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-costume.html.tmpl @@ -150,7 +150,7 @@ YAHOO.util.Event.onDOMReady(function() { costume will be sent, and details about the actual costumes.

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl index a53803f909..a83f1fe67d 100644 --- a/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-creative.html.tmpl @@ -120,7 +120,7 @@ function toggleTypeOther(element) { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - @@ -133,7 +133,7 @@ function toggleTypeOther(element) { - +
    Have a new project or campaign that requires copy, design, video or other awesomeness diff --git a/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl index fac88e9cb7..df85f14291 100644 --- a/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-crm.html.tmpl @@ -90,7 +90,7 @@ $(document).ready(function() {

    Tell us more and then join our weekly meeting for next steps (we’ll send you the invite details once you submit the [% terms.bug %]):

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl index bade9a588c..e64d3500bb 100644 --- a/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-data-compliance.html.tmpl @@ -73,7 +73,7 @@

    Data Compliance Form

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl index 5478de00fb..bdb8f3f01c 100644 --- a/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-dev-engagement-event.html.tmpl @@ -50,7 +50,7 @@

    Developer Events Request Form

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl index 9ff4ef2e39..61460b4eca 100644 --- a/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-doc.html.tmpl @@ -52,7 +52,7 @@ function validateAndSubmit() { [ * Required Fields ]

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-finance.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-finance.html.tmpl index 434c82fa33..473fd84786 100644 --- a/extensions/BMO/template/en/default/bug/create/create-finance.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-finance.html.tmpl @@ -75,7 +75,7 @@

    All fields are mandatory

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-fsa-budget.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-fsa-budget.html.tmpl index d97d95b2a6..22a80f5c85 100644 --- a/extensions/BMO/template/en/default/bug/create/create-fsa-budget.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-fsa-budget.html.tmpl @@ -83,7 +83,7 @@ function validateAndSubmit() { * - Required Fields

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-intern.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-intern.html.tmpl index ad3b30324a..4a36c09490 100644 --- a/extensions/BMO/template/en/default/bug/create/create-intern.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-intern.html.tmpl @@ -112,7 +112,7 @@ $(document).ready(function() { team, business need, budget, and location support.

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl index 5e5e3b6c2f..a838adb2e2 100644 --- a/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl @@ -68,7 +68,7 @@ function validateAndSubmit() {

    Internet Public Policy Issue

    - @@ -175,9 +175,9 @@ function validateAndSubmit() { [ * Required Field ] diff --git a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl index ef452c67f4..60eb2cbfed 100644 --- a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl @@ -35,7 +35,7 @@ serviceNowText; compdesc['Mailing List'] = 'Mailing list requests should be filed ' + - 'here instead.'; + 'here instead.'; function setcompdesc(theRadio) { if (theRadio.id == 'component_service_desk') { @@ -89,9 +89,9 @@ [% USE Bugzilla %]

    Please use this form for IT requests only!

    -

    If you have a [% terms.bug %] to file, go here.

    +

    If you have a [% terms.bug %] to file, go here.

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-legal.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-legal.html.tmpl index 8fd2a98ac1..0a75cab2b1 100644 --- a/extensions/BMO/template/en/default/bug/create/create-legal.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-legal.html.tmpl @@ -75,7 +75,7 @@ label.required:before {

    [ * Required Field ]

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl index 3dc5980f89..b0e7641f49 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl @@ -173,12 +173,12 @@ strong.required:before { javascript_urls = [ 'extensions/BMO/web/js/form_validate.js' ] %] - +

    MDN Web Docs Feedback

    - @@ -365,9 +365,9 @@ strong.required:before { diff --git a/extensions/BMO/template/en/default/bug/create/create-mobile-compat.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mobile-compat.html.tmpl index a9f0fd2cc5..8f5cd038b2 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mobile-compat.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mobile-compat.html.tmpl @@ -80,7 +80,7 @@ function validateAndSubmit() {

    [% title FILTER none %]

    -
    @@ -192,9 +192,9 @@ function validateAndSubmit() { [ * Required Field ] diff --git a/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl index 8c54bc8039..b5d9579a8e 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mozlist.html.tmpl @@ -60,7 +60,7 @@

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-mozpr.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mozpr.html.tmpl index 697542eadd..d108feaa4c 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mozpr.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mozpr.html.tmpl @@ -287,7 +287,7 @@ function validate_form() { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - diff --git a/extensions/BMO/template/en/default/bug/create/create-name-clearance.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-name-clearance.html.tmpl index 499ca0d827..80e2909d54 100644 --- a/extensions/BMO/template/en/default/bug/create/create-name-clearance.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-name-clearance.html.tmpl @@ -75,7 +75,7 @@ $(function() {

    [ * Required Field ]

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl index 2d766493ab..01ded31014 100644 --- a/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-nda.html.tmpl @@ -64,7 +64,7 @@ $(function() { privilege and confidentiality, legal [% terms.bugs %] are only visible to the reporter, the legal team, and the cc list.

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-recoverykey.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-recoverykey.html.tmpl index 3ede350a28..ec5c0783a7 100644 --- a/extensions/BMO/template/en/default/bug/create/create-recoverykey.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-recoverykey.html.tmpl @@ -33,7 +33,7 @@
  • The asset tag number is located on a sticker typically on the bottom of the device.
  • - + diff --git a/extensions/BMO/template/en/default/bug/create/create-recruiting.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-recruiting.html.tmpl index 2107da039b..f2217b9458 100644 --- a/extensions/BMO/template/en/default/bug/create/create-recruiting.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-recruiting.html.tmpl @@ -78,7 +78,7 @@ function jobDescToggle(what) { communication about existing open requisitions in Greenhouse.

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-screen-share-whitelist.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-screen-share-whitelist.html.tmpl index 98047e36b2..a24365f994 100644 --- a/extensions/BMO/template/en/default/bug/create/create-screen-share-whitelist.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-screen-share-whitelist.html.tmpl @@ -92,7 +92,7 @@ function fieldValue(elem_id) { whitelist requests - diff --git a/extensions/BMO/template/en/default/bug/create/create-shield-studies.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-shield-studies.html.tmpl index 9bc6c0de0a..4b5e988f0c 100644 --- a/extensions/BMO/template/en/default/bug/create/create-shield-studies.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-shield-studies.html.tmpl @@ -42,7 +42,7 @@ [ * Required Field ]

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-swag.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-swag.html.tmpl index 05ec4e2d97..7f7a173955 100644 --- a/extensions/BMO/template/en/default/bug/create/create-swag.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-swag.html.tmpl @@ -533,7 +533,7 @@ function showGear() { target="_blank" rel="noopener noreferrer">their existing process.

    - diff --git a/extensions/BMO/template/en/default/bug/create/create-trademark.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-trademark.html.tmpl index 0a7629a88a..2788c01d45 100644 --- a/extensions/BMO/template/en/default/bug/create/create-trademark.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-trademark.html.tmpl @@ -38,7 +38,7 @@

    Please use this form for trademark requests only!

    - + diff --git a/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl index 64af64a6b9..304aecabf9 100644 --- a/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-user-engagement.html.tmpl @@ -86,7 +86,7 @@ function toggleGoalOther() { [% USE Bugzilla %] [% cgi = Bugzilla.cgi %] - @@ -97,7 +97,7 @@ function toggleGoalOther() { - +
    Have something that you think our users should know about? Is there a campaign that you diff --git a/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl index 92517cb80a..1e9b41a112 100644 --- a/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-web-bounty.html.tmpl @@ -71,7 +71,7 @@ function validateAndSubmit() {

    Web Bounty Form

    - diff --git a/extensions/BMO/template/en/default/bug/create/created-intern.html.tmpl b/extensions/BMO/template/en/default/bug/create/created-intern.html.tmpl index e45142b89b..096988c8ff 100644 --- a/extensions/BMO/template/en/default/bug/create/created-intern.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/created-intern.html.tmpl @@ -21,7 +21,7 @@

    - Reference: #[% id FILTER html %] + Reference: #[% id FILTER html %]

    [% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/created-recruiting.html.tmpl b/extensions/BMO/template/en/default/bug/create/created-recruiting.html.tmpl index 127a6442cf..2ffeaedd28 100644 --- a/extensions/BMO/template/en/default/bug/create/created-recruiting.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/created-recruiting.html.tmpl @@ -22,7 +22,7 @@

    - Reference: #[% id FILTER html %] + Reference: #[% id FILTER html %]

    [% PROCESS global/footer.html.tmpl %] diff --git a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl index cdc2e73e22..6fe22d48e8 100644 --- a/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl +++ b/extensions/BMO/template/en/default/bug/create/custom_forms.none.tmpl @@ -24,79 +24,79 @@ custom_forms = { ], "mozilla.org" => [ { - link => "form.moz.project.review", + link => basepath _ "form.moz.project.review", title => "Mozilla Project Review", group => "mozilla-employee-confidential", }, { - link => "form.trademark", + link => basepath _ "form.trademark", title => "Trademark Usage Requests", }, { - link => "form.gear", + link => basepath _ "form.gear", title => "Mozilla Gear Request", group => "mozilla-employee-confidential", }, { - link => "form.mozlist", + link => basepath _ "form.mozlist", title => "Mozilla Discussion Forum Requests", group => "mozilla-employee-confidential", }, ], "Marketing" => [ { - link => "form.user.engagement", + link => basepath _ "form.user.engagement", title => "User Engagement Initiation Form", group => "mozilla-employee-confidential", }, { - link => "form.gear", + link => basepath _ "form.gear", title => "Mozilla Gear Request", group => "mozilla-employee-confidential", }, { - link => "form.creative", + link => basepath _ "form.creative", title => "Brand Engagement Initiation Form", group => "mozilla-employee-confidential", }, { - link => "form.comm.newsletter", + link => basepath _ "form.comm.newsletter", title => "Mozilla Communities Newsletter", }, { - link => "form.costume", + link => basepath _ "form.costume", title => "Firefox Costume Requests", }, ], "Finance" => [ { - link => "form.finance", + link => basepath _ "form.finance", title => "Finance Request", group => "mozilla-employee-confidential", }, ], "Mozilla PR" => [ { - link => "form.mozpr", + link => basepath _ "form.mozpr", title => "PR Project Form", group => "pr-private", }, ], "Infrastructure & Operations" => [ { - link => "form.itrequest", + link => basepath _ "form.itrequest", title => "IT Request Form", group => "mozilla-employee-confidential", }, { - link => "form.mozlist", + link => basepath _ "form.mozlist", title => "Mozilla Discussion Forum Requests", group => "mozilla-employee-confidential", }, ], "Tech Evangelism" => [ { - link => "form.mobile.compat", + link => basepath _ "form.mobile.compat", title => "Mobile Web Compatibility Problem", }, ], @@ -109,81 +109,81 @@ custom_forms = { ], "Websites" => [ { - link => "form.web.bounty", + link => basepath _ "form.web.bounty", title => "Web Bounty Form", }, ], "Firefox" => [ { - link => "form.screen.share.whitelist", + link => basepath _ "form.screen.share.whitelist", title => "Firefox Screen Sharing Whitelist Submission", hide => 1, } ], "Testing" => [ { - link => "form.automative", + link => basepath _ "form.automative", title => "Automation Request Form", }, ], "Developer Engagement" => [ { - link => "form.dev.engagement.event", + link => basepath _ "form.dev.engagement.event", title => "Developer Events Request Form", }, ], "developer.mozilla.org" => [ { - link => "form.mdn", + link => basepath _ "form.mdn", title => "MDN Web Docs Feedback", }, ], "Internet Public Policy" => [ { - link => "form.ipp", + link => basepath _ "form.ipp", title => "Internet Public Policy Issue", }, ], "Data Compliance" => [ { - link => "form.data.compliance", + link => basepath _ "form.data.compliance", title => "Data Compliance Form", }, ], "Recruiting" => [ { - link => "form.recruiting", + link => basepath _ "form.recruiting", title => "Recruiting Requests", }, { - link => "form.intern", + link => basepath _ "form.intern", title => "Intern Requests", }, ] "Legal" => [ { title => 'Mozilla Foundation Vendor Request', - link => 'enter_bug.cgi?product=Mozilla%20Foundation%20Operations', + link => basepath _ 'enter_bug.cgi?product=Mozilla%20Foundation%20Operations', }, { title => 'Mozilla Corporation Vendor Request', - link => 'form.moz.project.review' + link => basepath _ 'form.moz.project.review' }, { title => 'Commercial (Partner) Agreement', - link => 'form.moz.project.review' + link => basepath _ 'form.moz.project.review' }, { title => 'Independent Contractor Request', - link => 'form.moz.project.review' + link => basepath _ 'form.moz.project.review' }, { title => "NDA Request", - link => "form.nda", + link => basepath _ "form.nda", }, { title => "Name Clearance Request", - link => "form.name.clearance", + link => basepath _ "form.name.clearance", } ], } diff --git a/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl b/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl index 6ecd0bc754..f888142624 100644 --- a/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/user-message.html.tmpl @@ -11,8 +11,8 @@

    [% UNLESS cloned_bug_id || no_guided_bug_link %] Consider using the - + [%+ terms.Bugzilla %] Helper instead of this form. [% END +%] [% UNLESS no_bug_guidelines %] @@ -37,7 +37,7 @@ %]

    - +
    This product has task-specific [% terms.bug %] forms that should be used if appropriate: diff --git a/extensions/BMO/template/en/default/global/choose-product.html.tmpl b/extensions/BMO/template/en/default/global/choose-product.html.tmpl index 74c9f7b0da..78364c88dc 100644 --- a/extensions/BMO/template/en/default/global/choose-product.html.tmpl +++ b/extensions/BMO/template/en/default/global/choose-product.html.tmpl @@ -134,11 +134,11 @@ %]

    - - + Other Products

    @@ -170,11 +170,11 @@ [%- IF has_entry_groups %] title="This product requires one or more group memberships in order to enter [% terms.bugs %] in it. You have them, but be aware not everyone else does."[% END %]>
    [% IF p.name == "Mozilla PR" AND target == "enter_bug.cgi" AND NOT format AND NOT cgi.param("debug") %] - [% p.name FILTER html FILTER no_break %]:  [% ELSE %] - [% p.name FILTER html FILTER no_break %]:  @@ -188,7 +188,7 @@
    [% IF target == "enter_bug.cgi" AND user.settings.product_chooser.value != 'full_product_chooser' %]

    You can choose to get this screen by default when you click "New [% terms.Bug %]" - by changing your preferences.

    + by changing your preferences.

    [% END %] [% END %] @@ -197,10 +197,10 @@ [% IF NOT is_describe %] [% END %] @@ -216,10 +216,10 @@ [% IF p.name == name %]

    - - + [% caption || name FILTER html %]

    diff --git a/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl b/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl index 6982b33388..1ff978b6b8 100644 --- a/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl +++ b/extensions/BMO/template/en/default/hook/attachment/list-action.html.tmpl @@ -12,5 +12,5 @@ [% IF !attachment.ispatch && attachment.can_review %] | - Review + Review [% END %] diff --git a/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl b/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl index 811e373cbe..9dbda38ed8 100644 --- a/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl +++ b/extensions/BMO/template/en/default/hook/attachment/list-warnings.html.tmpl @@ -14,7 +14,7 @@ [% IF bug.is_unassigned %]
    @@ -62,7 +62,7 @@ [% ELSE %] via [% IF privileged %] - + [% type.name FILTER html %] [% ELSE %] @@ -79,10 +79,10 @@
    [% IF privileged %] - [% ELSE %] - [% END %] @@ -111,7 +111,7 @@ [% END %]
    - JSON [% ELSE %]

    diff --git a/extensions/BMO/template/en/default/pages/group_membership.html.tmpl b/extensions/BMO/template/en/default/pages/group_membership.html.tmpl index a98354eacc..960a10da96 100644 --- a/extensions/BMO/template/en/default/pages/group_membership.html.tmpl +++ b/extensions/BMO/template/en/default/pages/group_membership.html.tmpl @@ -13,7 +13,7 @@ javascript_urls = [ "js/field.js" ] %] - + 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 index f5e1c05c88..225aef7b07 100644 --- a/extensions/BMO/template/en/default/pages/product_security_report.html.tmpl +++ b/extensions/BMO/template/en/default/pages/product_security_report.html.tmpl @@ -24,7 +24,7 @@ [% count = count + 1 %] diff --git a/extensions/BMO/template/en/default/pages/query_database.html.tmpl b/extensions/BMO/template/en/default/pages/query_database.html.tmpl index bc625b07ce..5889e8f230 100644 --- a/extensions/BMO/template/en/default/pages/query_database.html.tmpl +++ b/extensions/BMO/template/en/default/pages/query_database.html.tmpl @@ -11,7 +11,7 @@ style_urls = [ "extensions/BMO/web/styles/reports.css" ] %] - +


    diff --git a/extensions/BMO/template/en/default/pages/release_tracking_report.html.tmpl b/extensions/BMO/template/en/default/pages/release_tracking_report.html.tmpl index 6c0387ec05..ec81b91f49 100644 --- a/extensions/BMO/template/en/default/pages/release_tracking_report.html.tmpl +++ b/extensions/BMO/template/en/default/pages/release_tracking_report.html.tmpl @@ -25,7 +25,7 @@ var fields_data = $.parseJSON("[% fields_json FILTER js %]"); var default_query = '[% default_query FILTER js %]'; - +
    - + [% product.name FILTER html %]
    @@ -59,10 +59,10 @@ var default_query = '[% default_query FILTER js %]'; diff --git a/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl b/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl index 3663c29254..ca80c51c5c 100644 --- a/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl +++ b/extensions/BMO/template/en/default/pages/triage_owners.html.tmpl @@ -35,7 +35,7 @@ [% PROCESS "global/field-descs.none.tmpl" %] - + @@ -116,7 +116,7 @@
    [% IF r.buglist_url %] - + [% r.bug_count FILTER html +%] [%+ terms.bugs %] found. [% ELSE %] diff --git a/extensions/BMO/template/en/default/pages/triage_reports.html.tmpl b/extensions/BMO/template/en/default/pages/triage_reports.html.tmpl index 13904f61b7..272b4cdb3c 100644 --- a/extensions/BMO/template/en/default/pages/triage_reports.html.tmpl +++ b/extensions/BMO/template/en/default/pages/triage_reports.html.tmpl @@ -54,7 +54,7 @@ var selected_components = [ [% PROCESS "global/field-descs.none.tmpl" %] - @@ -183,7 +183,7 @@ Show UNCONFIRMED [% terms.bugs %] with:

    - Show as a [% terms.Bug %] List

    diff --git a/extensions/BMO/template/en/default/pages/triage_request.html.tmpl b/extensions/BMO/template/en/default/pages/triage_request.html.tmpl index 954ad5a062..0c4fe4223b 100644 --- a/extensions/BMO/template/en/default/pages/triage_request.html.tmpl +++ b/extensions/BMO/template/en/default/pages/triage_request.html.tmpl @@ -63,7 +63,7 @@ Would you like to add "canconfirm" permissions to your account?

    - + diff --git a/extensions/BMO/template/en/default/pages/upgrade-3.6.html.tmpl b/extensions/BMO/template/en/default/pages/upgrade-3.6.html.tmpl index 6091810db9..962ca38c74 100644 --- a/extensions/BMO/template/en/default/pages/upgrade-3.6.html.tmpl +++ b/extensions/BMO/template/en/default/pages/upgrade-3.6.html.tmpl @@ -28,8 +28,8 @@

    Last Updated: [% date.format(template.modtime, "%d-%b-%Y %H:%M %Z") %]

    On Friday, July 9, 2010, at 11:40pm PDT (0640 UTC), bugzilla.mozilla.org was - upgraded to Bugzilla 3.6.1+. Please - file + upgraded to Bugzilla 3.6.1+. Please + file any regressions for tracking purposes.

    Known Issues

    @@ -81,7 +81,7 @@ [%+ terms.Bugzilla %] and in the header/footer of every page is now simplified and made more powerful. There is a [?] link next to the box that will take you to - the simplified Quicksearch Help, + the simplified Quicksearch Help, which describes every single feature of the system in a simple layout, including new features such as the ability to use partial field names when searching.

    diff --git a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl index 1d6e222c62..3a1d6cc971 100644 --- a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl +++ b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl @@ -23,7 +23,7 @@ [% PROCESS "global/field-descs.none.tmpl" %] [% PROCESS bug/time.html.tmpl %] - + @@ -151,7 +151,7 @@ [% END %]
    [% IF change.attachid %] - Attachment #[% change.attachid FILTER html %] @@ -175,7 +175,7 @@ [% END %]

    - + Show as a [% terms.Bug %] List

    @@ -215,7 +215,7 @@ [% INCLUDE global/footer.html.tmpl %] [% BLOCK group_when_link %] - { bugzilla_ajax({ - url: `/rest/bug?${params.toString()}` + url: `${BUGZILLA.config.basepath}rest/bug?${params.toString()}` }, response => { if (!response.bugs) { reject(new Error('Your frequent components could not be retrieved.')); diff --git a/extensions/BMO/web/js/release_tracking_report.js b/extensions/BMO/web/js/release_tracking_report.js index 158cc7521b..edb7cc79ee 100644 --- a/extensions/BMO/web/js/release_tracking_report.js +++ b/extensions/BMO/web/js/release_tracking_report.js @@ -161,8 +161,8 @@ function serialiseForm() { $('#q').val(q); var is_custom = $('#is_custom').is(':checked') ? 1 : 0; - $('#bookmark').attr('href', 'page.cgi?id=release_tracking_report.html&is_custom=' + - is_custom + '&q=' + encodeURIComponent(q)); + $('#bookmark').attr('href', `${BUGZILLA.config.basepath}page.cgi?id=release_tracking_report.html&is_custom=` + + `${is_custom}&q=${encodeURIComponent(q)}`); } function deserialiseForm(q) { diff --git a/extensions/Bitly/web/js/bitly.js b/extensions/Bitly/web/js/bitly.js index cdf1a917ae..1bc39d411a 100644 --- a/extensions/Bitly/web/js/bitly.js +++ b/extensions/Bitly/web/js/bitly.js @@ -18,9 +18,9 @@ $(function() { } $('#bitly-url').val(''); - var request = 'rest/bitly/' + type + - '?url=' + encodeURIComponent($('#bitly-shorten').data('url')) + - '&Bugzilla_api_token=' + encodeURIComponent(BUGZILLA.api_token); + var request = `${BUGZILLA.config.basepath}rest/bitly/${type}?` + + `url=${encodeURIComponent($('#bitly-shorten').data('url'))}&` + + `Bugzilla_api_token=${encodeURIComponent(BUGZILLA.api_token)}`; $.ajax(request) .done(function(data) { urls[type] = data.url; diff --git a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl index 08c6b5b648..1c99f5c11b 100644 --- a/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl @@ -158,7 +158,7 @@

    - + [% comment.count == 0 ? "Description" : "Comment " _ comment.count ~%]

    @@ -231,7 +231,7 @@

    - Updated + Updated

    @@ -248,9 +248,9 @@ [% IF comment.collapsed +%] style="display:none"[% END ~%] >[% FILTER collapse %] [% IF comment.is_about_attachment && comment.attachment.is_image ~%] - + class="lightbox"> [% END %] [% END %] [%~ comment.body_full FILTER quoteUrls(bug, comment) ~%] @@ -278,7 +278,7 @@ IF change.attachid; %] - Attachment #[% change.attachid FILTER none %] - diff --git a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl index a276370562..1e5da5b954 100644 --- a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl @@ -28,14 +28,14 @@ @@ -86,9 +86,9 @@ [% END %] - Details + Details [% IF attachment.ispatch %] - | Diff + | Diff [% END %] [% Hook.process("action", "attachment/list.html.tmpl") %] diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 099e06c5e1..a7362790f1 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -153,7 +153,7 @@ %] [% IF user.id %] - + @@ -182,7 +182,7 @@ view_only = 1 %]
    - [% this_bug_href = "show_bug.cgi?id=$bug.id" %] + [% this_bug_href = basepath _ "show_bug.cgi?id=$bug.id" %] [% IF cgi.param("format") %] [% format_uri = cgi.param("format") FILTER uri %] [% this_bug_href = this_bug_href _ "&format=" _ format_uri %] @@ -299,7 +299,7 @@ @@ -374,7 +374,7 @@ field = bug_fields.product field_type = constants.FIELD_TYPE_SINGLE_SELECT hide_on_edit = can_edit_product - help = "describecomponents.cgi?product=$filtered_product" + help = basepath _ "describecomponents.cgi?product=$filtered_product" %]