-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/11592-remove-trailing-slash-from-void-el…
…ements
- Loading branch information
Showing
35 changed files
with
402 additions
and
816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
network-api/networkapi/mozfest/templates/partials/primary_hero.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
network-api/networkapi/mozfest/templates/partials/streamfield.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{% load wagtailcore_tags %} | ||
|
||
{% for block in page.body %} | ||
{# optionally render a pre and post paragraph spacer for landing_page / homepage page types with dark sections #} | ||
{% if block.block_type == 'paragraph' %} | ||
{% block pre_paragraph_spacer %}{% endblock pre_paragraph_spacer %} | ||
{% endif %} | ||
{% include_block block with parent_page=page %} | ||
{% endfor %} | ||
{% if block.block_type == 'paragraph' %} | ||
{% block post_paragraph_spacer %}{% endblock post_paragraph_spacer %} | ||
{% endif %} | ||
{% endfor %} |
9 changes: 9 additions & 0 deletions
9
network-api/networkapi/mozfest/templates/partials/streamfield_spacer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends "./streamfield.html" %} | ||
|
||
{% block pre_paragraph_spacer %} | ||
<div class="tw-mt-16 large:tw-mt-18"></div> | ||
{% endblock pre_paragraph_spacer %} | ||
|
||
{% block post_paragraph_spacer %} | ||
<div class="tw-mt-8 large:tw-mt-10"></div> | ||
{% endblock post_paragraph_spacer %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
network-api/networkapi/templates/fragments/buyersguide/related_products_section.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% load i18n %} | ||
|
||
<section id="related-products" class="tw-col-span-full medium:tw-col-span-2 large:tw-col-start-2"> | ||
<div class="tw-flex tw-flex-col medium:tw-items-center large:tw-items-baseline medium:tw-flex-row-reverse medium:tw-gap-12"> | ||
{% include "fragments/buyersguide/wavy_line.html" %} | ||
<h2 class="tw-h3-heading tw-mt-4 large:tw-mt-0 tw-shrink-0">{% trans "Related products" %}</h2> | ||
</div> | ||
<div class="tw-grid tw-grid-cols-2 medium:tw-grid-cols-4 tw-gap-16"> | ||
{% for related_product_page in related_products %} | ||
{% include "fragments/buyersguide/related_product.html" with related_product=related_product_page %} | ||
{% endfor %} | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
network-api/networkapi/templates/partials/intro_and_content_divider.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="container {{ wrapper_class }}"> | ||
<div class="row"> | ||
<div class="col-12"><hr class="intro-and-content-divider" /></div> | ||
<div class="col-12"><hr class="intro-and-content-divider"></div> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
network-api/networkapi/templates/previews/buyersguide/product_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{# This template is only used for CMS previews of ProductPages. #} | ||
|
||
{% extends "pages/buyersguide/product_page.html" %} | ||
|
||
{% block related_products %} | ||
{% with related_products=product.preview_related_products %} | ||
{% if related_products %} | ||
{% include "fragments/buyersguide/related_products_section.html" with related_products=related_products %} | ||
{% endif %} | ||
{% endwith %} | ||
{% endblock related_products %} |
67 changes: 67 additions & 0 deletions
67
network-api/networkapi/templates/wagtail_ab_testing/script.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{% load static %} | ||
|
||
{% if track %} | ||
{# Is this a Wagtail Page? #} | ||
{% if page %} | ||
{# This value is used to check if a goal has been reached #} | ||
{{ page.id|json_script:"abtesting-page-id" }} | ||
{% endif %} | ||
|
||
{# Is there a test running on the current page? #} | ||
{% if test and version %} | ||
{{ test.id|json_script:"abtesting-test-id" }} | ||
{{ version|json_script:"abtesting-version" }} | ||
{{ test.goal_event|json_script:"abtesting-goal-event" }} | ||
{% if test.goal_page %} | ||
{{ test.goal_page.id|json_script:"abtesting-goal-page-id" }} | ||
{% else %} | ||
{{ None|json_script:"abtesting-goal-page-id" }} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{# URLs #} | ||
{% url 'wagtail_ab_testing:register_participant' as register_participant_url %} | ||
{{ register_participant_url|json_script:"abtesting-register-participant-url" }} | ||
{% url 'wagtail_ab_testing:goal_reached' as goal_reached_url %} | ||
{{ goal_reached_url|json_script:"abtesting-goal-reached-url" }} | ||
|
||
<script nonce="{{ request.csp_nonce }}"> | ||
// Read values from the DOM | ||
const registerParticipantUrl = JSON.parse(document.getElementById('abtesting-register-participant-url').textContent); | ||
const goalReachedUrl = JSON.parse(document.getElementById('abtesting-goal-reached-url').textContent); | ||
|
||
window.wagtailAbTesting = { | ||
urls :{ | ||
registerParticipant: registerParticipantUrl, | ||
goalReached: goalReachedUrl | ||
} | ||
}; | ||
|
||
if (document.getElementById('abtesting-page-id')) { | ||
const pageId = JSON.parse(document.getElementById('abtesting-page-id').textContent); | ||
window.wagtailAbTesting.pageId = pageId; | ||
} | ||
|
||
let testId = null; | ||
let version = null; | ||
|
||
if (document.getElementById('abtesting-test-id')) { | ||
testId = JSON.parse(document.getElementById('abtesting-test-id').textContent); | ||
} | ||
|
||
if (document.getElementById('abtesting-version')) { | ||
version = JSON.parse(document.getElementById('abtesting-version').textContent); | ||
} | ||
|
||
if (testId && version) { | ||
const goalEvent = JSON.parse(document.getElementById('abtesting-goal-event').textContent); | ||
const goalPageId = JSON.parse(document.getElementById('abtesting-goal-page-id').textContent); | ||
window.wagtailAbTesting.testId = testId; | ||
window.wagtailAbTesting.version = version; | ||
window.wagtailAbTesting.goalEvent = goalEvent; | ||
window.wagtailAbTesting.goalPageId = goalPageId; | ||
} | ||
</script> | ||
|
||
<script nonce="{{ request.csp_nonce }}" src="{% static 'wagtail_ab_testing/js/tracker.js' %}" defer async></script> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
network-api/networkapi/wagtailcustomization/static/wagtailadmin/css/max-length-field.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.max-length-countdown { | ||
text-align: right; | ||
color: #000000; | ||
} | ||
|
||
.max-length-countdown.warning { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.