Prettier for PUG templates (#26170)

* Setup prettier

* Ignore these pug templates by prettier

* Fix typo

* Fix prettier error

* Add prettier-ignore for quoting of event-segmentation attribute

* Manual tab indentation

* Interpolate

* Remove unbuffered if conditional

* Inline event-segmentation objects and remove prettier-ignore rule

* Fix spacing before interpolation

* Source format

* Source format

GitOrigin-RevId: c30e037f5caf8f91efc1bd9e75f81ae533b5a506
This commit is contained in:
Rebeka Dekany
2025-06-24 08:05:06 +00:00
committed by Copybot
parent 19dc71f414
commit c40ab3234d
96 changed files with 2140 additions and 1758 deletions
+7 -7
View File
@@ -1,29 +1,29 @@
extends ../layout/layout-no-js
block vars
- metadata = { title: 'Something went wrong' }
- metadata = {title: 'Something went wrong'}
block body
body.full-height
main.content.content-alt.full-height#main-content
main#main-content.content.content-alt.full-height
.container.full-height
.error-container.full-height
.error-details
p.error-status Something went wrong, sorry.
p.error-description
| There was a problem with your request.
if(message)
if message
|
| The error is:
if(message)
if message
p.error-box
| #{message}
p.error-description
| Please go back and try again.
| If the problem persists, please contact us at
|
a(href="mailto:" + settings.adminEmail) #{settings.adminEmail}
a(href='mailto:' + settings.adminEmail) #{settings.adminEmail}
| .
p.error-actions
a.error-btn(href="javascript:history.back()") Back
a.btn.btn-secondary(href="/") Home
a.error-btn(href='javascript:history.back()') Back
a.btn.btn-secondary(href='/') Home
+2 -2
View File
@@ -1,11 +1,11 @@
extends ../layout-marketing
block content
main.content.content-alt#main-content
main#main-content.content.content-alt
.container
.error-container
.error-details
p.error-status Not found
p.error-description #{translate("cant_find_page")}
p.error-actions
a.error-btn(href="/") Home
a.error-btn(href='/') Home
+5 -5
View File
@@ -1,11 +1,11 @@
extends ../layout/layout-no-js
block vars
- metadata = { title: 'Something went wrong' }
- metadata = {title: 'Something went wrong'}
block body
body.full-height
main.content.content-alt.full-height#main-content
main#main-content.content.content-alt.full-height
.container.full-height
.error-container.full-height
.error-details
@@ -13,11 +13,11 @@ block body
p.error-description Our staff are probably looking into this, but if it continues, please check our status page at
|
|
a(href="http://" + settings.statusPageUrl) #{settings.statusPageUrl}
a(href='http://' + settings.statusPageUrl) #{settings.statusPageUrl}
|
| or contact us at
|
a(href="mailto:" + settings.adminEmail) #{settings.adminEmail}
a(href='mailto:' + settings.adminEmail) #{settings.adminEmail}
| .
p.error-actions
a.error-btn(href="/") Home
a.error-btn(href='/') Home
+1 -1
View File
@@ -1,7 +1,7 @@
extends ../layout-marketing
block content
main.content#main-content
main#main-content.content
.container
.row
.col-lg-8.offset-lg-2.text-center
@@ -15,12 +15,8 @@ block content
.card-body
p.text-center #{translate('processing_your_request')}
form(
data-ol-regular-form
data-ol-auto-submit
method="POST"
)
input(name="_csrf" type="hidden" value=csrfToken)
input(hidden name="viaGateway" type="submit" value="true")
for name in Object.keys(form_data)
input(name=name type="hidden" value=form_data[name])
form(data-ol-regular-form data-ol-auto-submit method='POST')
input(name='_csrf' type='hidden' value=csrfToken)
input(name='viaGateway' hidden type='submit' value='true')
each name in Object.keys(form_data)
input(name=name type='hidden' value=form_data[name])
@@ -1,11 +1,11 @@
extends ../layout/layout-no-js
block vars
- metadata = { title: 'Unsupported browser' }
- metadata = {title: 'Unsupported browser'}
block body
body.full-height
main.content.content-alt.full-height#main-content
main#main-content.content.content-alt.full-height
.container.full-height
.error-container.full-height
.error-details
@@ -15,7 +15,7 @@ block body
br
| If you think you're seeing this message in error,
|
a(href="mailto:" + settings.adminEmail) please let us know
a(href='mailto:' + settings.adminEmail) please let us know
| .
if fromURL
@@ -33,7 +33,7 @@ block body
p
| Support for beta or developer-preview browser versions cannot be guaranteed. Please
|
a(href="mailto:" + settings.adminEmail) get in touch
a(href='mailto:' + settings.adminEmail) get in touch
|
| if you encounter any issues while using the service with beta or developer-preview releases of supported browsers.
p
@@ -41,5 +41,5 @@ block body
p
| If you cannot upgrade to one of the supported browsers,
|
a(href="mailto:" + settings.adminEmail) please let us know
a(href='mailto:' + settings.adminEmail) please let us know
| .