-
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.
Add "wide" option to Datawrapper (#12867)
* Update datawrapper model, creating structblock container * Update references to datawrapper to new datawrapper container * Update datawrapper templates * Create datawrapper migrations * linting * Update migration * Linting for line too long * remake migrations * djlint rules * Update faker * Update migration dependency
- Loading branch information
1 parent
961cf16
commit a284b31
Showing
17 changed files
with
15,645 additions
and
22 deletions.
There are no files selected for viewing
2,318 changes: 2,318 additions & 0 deletions
2,318
network-api/networkapi/donate/migrations/0025_alter_donatehelppage_body.py
Large diffs are not rendered by default.
Oops, something went wrong.
3,042 changes: 3,042 additions & 0 deletions
3,042
network-api/networkapi/mozfest/migrations/0066_alter_mozfestprimarypage_body.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
10,232 changes: 10,232 additions & 0 deletions
10,232
...rkapi/wagtailpages/migrations/0165_alter_articlepage_body_alter_blogpage_body_and_more.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
8 changes: 0 additions & 8 deletions
8
network-api/networkapi/wagtailpages/templates/wagtailpages/blocks/datawrapper_block.html
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...pi/networkapi/wagtailpages/templates/wagtailpages/blocks/datawrapper_container_block.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,12 @@ | ||
{% extends "./base_streamfield_block.html" %} | ||
{% load wagtailembeds_tags %} | ||
|
||
{% block streamfield_content_classes %} | ||
{% if value.wide %} | ||
tw-flex-[0_0_100%] tw-max-w-full | ||
{% endif %} | ||
{% endblock streamfield_content_classes %} | ||
|
||
{% block block_content %} | ||
{{ value.datawrapper }} | ||
{% endblock block_content %} |
5 changes: 5 additions & 0 deletions
5
...api/networkapi/wagtailpages/templates/wagtailpages/fragments/datawrapper_embed_block.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,5 @@ | ||
{% load wagtailembeds_tags %} | ||
|
||
<div class="tw-my-4"> | ||
{% embed value.url %} | ||
</div> |
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