Skip to content

Commit 2f8df46

Browse files
committed
rename filter so it's specific to gists
1 parent f53aa9b commit 2f8df46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tbx/core/templatetags/util_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def ifinlist(value, list):
9191
return str(value) in stringList
9292

9393

94-
@register.filter(name="has_raw_html_block")
95-
def has_raw_html_block(value):
94+
@register.filter(name="has_gist_block")
95+
def has_gist_block(value):
9696
if not isinstance(value, StreamValue):
9797
return False
9898

tbx/project_styleguide/templates/patterns/pages/blog/blog_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block extra_css %}
55
{{ block.super }}
6-
{% if page.body|has_raw_html_block %}
6+
{% if page.body|has_gist_block %}
77
<link rel="stylesheet" type="text/css" href="{% static 'css/gist.css' %}">
88
{% endif %}
99

0 commit comments

Comments
 (0)