-
Notifications
You must be signed in to change notification settings - Fork 112
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 tile-map-fixes
- Loading branch information
Showing
34 changed files
with
1,093 additions
and
201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,9 +85,9 @@ | |
EMAIL_HOST = os.getenv("EMAIL_HOST") | ||
DEFAULT_FROM_EMAIL = "[email protected]" | ||
|
||
STATICFILES_STORAGE = ( | ||
"django.contrib.staticfiles.storage.ManifestStaticFilesStorage" | ||
) | ||
STORAGES["staticfiles"] = { | ||
"BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" | ||
} | ||
|
||
STATIC_ROOT = os.environ["DJANGO_STATIC_ROOT"] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends 'v1/blog/blog_page.html' %} | ||
|
||
{% block content_intro scoped -%} | ||
{% import 'v1/includes/molecules/banner.html' as banner %} | ||
{% set canonical_archive_url = 'https://wayback.archive-it.org/23462/20241001120000/' ~ request.build_absolute_uri(request.path) | lower %} | ||
{{- banner.render( | ||
true, | ||
'Archived content', | ||
'This content has been archived, and its original formatting has been removed.', | ||
[ { | ||
'text': 'View this page as it was originally published', | ||
'url': canonical_archive_url | ||
} ] | ||
) }} | ||
{%- endblock %} | ||
|
||
{% block content_main %} | ||
|
||
{% include 'v1/includes/article.html' %} | ||
{% block post_article_content %} | ||
|
||
{% endblock %} | ||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{# ========================================================================== | ||
|
||
banner.render() | ||
|
||
========================================================================== | ||
|
||
Description: | ||
|
||
Builds banner markup when given: | ||
|
||
is_dark: Whether the banner is dark or not. Default is false. | ||
|
||
message: Text to display within the banner's notification markup. | ||
|
||
explanation: Text to display as an explanation | ||
within the banner's notification markup. | ||
Defaults to none. | ||
|
||
links: Array of link objects, which each contain: | ||
- text (required): text of link. | ||
- url: link url. | ||
- is_link_boldface: sets bold formatting. | ||
- open_link_in_new_window: opens the link in a new window | ||
Defaults to an empty array. | ||
|
||
========================================================================== #} | ||
|
||
{% macro render(is_dark, message, explanation, links) %} | ||
<div class="o-banner{{ ' o-banner--dark' if is_dark else '' }}"> | ||
<div class="wrapper wrapper--match-content"> | ||
{% import 'v1/includes/molecules/notification.html' as notification %} | ||
{{ notification.render( | ||
'warning', | ||
true, | ||
message, | ||
explanation, | ||
links | ||
) }} | ||
</div> | ||
</div> | ||
{% endmacro %} | ||
|
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
20 changes: 20 additions & 0 deletions
20
cfgov/v1/migrations/0038_emailsignup_disclaimer_page_set_null.py
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,20 @@ | ||
# Generated by Django 4.2.14 on 2024-08-26 13:13 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('wagtailcore', '0093_uploadedfile'), | ||
('v1', '0037_add_table_caption'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='emailsignup', | ||
name='disclaimer_page', | ||
field=models.ForeignKey(blank=True, help_text='Choose the page that the "See Privacy Act statement" link should go to. If in doubt, use "Generic Email Sign-Up Privacy Act Statement".', null=True, on_delete=django.db.models.deletion.SET_NULL, to='wagtailcore.page', verbose_name='Privacy Act statement'), | ||
), | ||
] |
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,21 @@ | ||
# Generated by Django 4.2.16 on 2024-10-15 14:48 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('v1', '0038_emailsignup_disclaimer_page_set_null'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='eventpage', | ||
name='post_event_image', | ||
), | ||
migrations.RemoveField( | ||
model_name='eventpage', | ||
name='post_event_image_type', | ||
), | ||
] |
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.