Skip to content

Commit 04b5967

Browse files
author
AJ Griffiths
committed
lint fixes
1 parent 50b064f commit 04b5967

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tbx/core/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_button_link(self):
221221
# Ensure page exists and is live.
222222
if block.value and block.value.live:
223223
return block.value.url
224-
elif block_type == "external_link" or block_type =="modal_iframe":
224+
elif block_type == "external_link" or block_type == "modal_iframe":
225225
return block.value
226226
elif block_type == "email":
227227
return f"mailto:{block.value}"

tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/sticky_call_to_action.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
{% if value.get_button_link_block.block_type == "document_link" %}
1919
({{ value.get_button_file_size|filesizeformat }})
2020
{% endif %}
21-
{% if value.sticky_subtext %}
22-
<br>
23-
{{ value.sticky_subtext }}
24-
{% endif %}
21+
{% if value.sticky_subtext %}
22+
<br>
23+
{{ value.sticky_subtext }}
24+
{% endif %}
2525
</a>
2626
{% endif %}
2727
</div>

tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/sticky_call_to_action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ context:
22
value:
33
sticky_text: Get in touch
44
sticky_subtext: learn about our journey
5-
sticky_link:
6-
- modal_iframe:
7-
url: 'https://example.com'
5+
button_link:
6+
- modal_iframe:
7+
url: 'https://example.com'

0 commit comments

Comments
 (0)