Skip to content

Commit c54c388

Browse files
committed
add filter to historical work, standard, service and impact report pages
1 parent 2f8df46 commit c54c388

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

tbx/project_styleguide/templates/patterns/pages/impact_reports/impact_report_page.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{% extends "patterns/base_page.html" %}
2-
{% load wagtailcore_tags wagtailimages_tags %}
2+
{% load wagtailcore_tags wagtailimages_tags util_tags static %}
3+
4+
{% block extra_css %}
5+
{{ block.super }}
6+
{% if page.body|has_gist_block %}
7+
<link rel="stylesheet" type="text/css" href="{% static 'css/gist.css' %}">
8+
{% endif %}
9+
10+
{% if page.body|has_markdown_block %}
11+
<link rel="stylesheet" type="text/css" href="{% static 'css/codehilite.css' %}">
12+
{% endif %}
13+
{% endblock %}
314

415
{% block content %}
516
<div class="grid mt-spacerMedium lg:mt-spacerLarge">

tbx/project_styleguide/templates/patterns/pages/service/service_page.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{% extends "patterns/base_page.html" %}
2-
{% load wagtailcore_tags wagtailimages_tags static %}
2+
{% load wagtailcore_tags wagtailimages_tags util_tags static %}
3+
4+
{% block extra_css %}
5+
{{ block.super }}
6+
{% if page.body|has_gist_block %}
7+
<link rel="stylesheet" type="text/css" href="{% static 'css/gist.css' %}">
8+
{% endif %}
9+
10+
{% if page.body|has_markdown_block %}
11+
<link rel="stylesheet" type="text/css" href="{% static 'css/codehilite.css' %}">
12+
{% endif %}
13+
{% endblock %}
314

415
{% block content %}
516
<div class="grid grid--spacer-large streamfield">

tbx/project_styleguide/templates/patterns/pages/standard/standard_page.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{% extends "patterns/base_page.html" %}
2-
{% load wagtailcore_tags wagtailimages_tags static %}
2+
{% load wagtailcore_tags wagtailimages_tags util_tags static %}
3+
4+
{% block extra_css %}
5+
{{ block.super }}
6+
{% if page.body|has_gist_block %}
7+
<link rel="stylesheet" type="text/css" href="{% static 'css/gist.css' %}">
8+
{% endif %}
9+
10+
{% if page.body|has_markdown_block %}
11+
<link rel="stylesheet" type="text/css" href="{% static 'css/codehilite.css' %}">
12+
{% endif %}
13+
{% endblock %}
314

415
{% block content %}
516
<div class="grid grid--spacer-large streamfield">

tbx/project_styleguide/templates/patterns/pages/work/historical_work_page.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{% extends "patterns/pages/work/work_page_base.html" %}
2-
{% load wagtailcore_tags wagtailimages_tags static %}
2+
{% load wagtailcore_tags wagtailimages_tags util_tags static %}
3+
4+
{% block extra_css %}
5+
{{ block.super }}
6+
{% if page.body|has_gist_block %}
7+
<link rel="stylesheet" type="text/css" href="{% static 'css/gist.css' %}">
8+
{% endif %}
9+
10+
{% if page.body|has_markdown_block %}
11+
<link rel="stylesheet" type="text/css" href="{% static 'css/codehilite.css' %}">
12+
{% endif %}
13+
{% endblock %}
314

415
{# The historical work pages did not have a separate intro - so we just loop over the body streamfield to find the intro block(s) #}
516
{% block intro %}

0 commit comments

Comments
 (0)