Skip to content

Commit

Permalink
Merge pull request #104 from springload/fix/tile-content-fixes
Browse files Browse the repository at this point in the history
Fix event tile content
  • Loading branch information
liamjohnston authored Jun 17, 2024
2 parents 2374176 + b474a08 commit bcfd9b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/cdhpages/blocks/tile.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
{% if tile_type == 'internal_page_tile' %}

{% if internal_page.specific.page_type == 'BlogPost' %}
<p>{{ internal_page.specific.category }} </p>
<p>{{ internal_page.specific.first_published_at|date:"j F Y" }}</p>
{{ internal_page.specific.short_description|default:internal_page.specific.description|richtext }}

Expand Down Expand Up @@ -69,12 +68,14 @@
{% endif %}
</div>

{% if internal_page.specific.cdh_built or internal_page.specific.page_type == 'Event' %}
{% if internal_page.specific.cdh_built or internal_page.specific.page_type == 'Event' or internal_page.specific.page_type == 'BlogPost' %}
<div class="tile__tag">
{% if internal_page.specific.cdh_built %}
<div class="tag tag--dark">Built by CDH</div>
{% elif internal_page.specific.page_type == 'Event' %}
{% elif internal_page.specific.page_type == 'Event' and internal_page.specific.type %}
<div class="tag tag--dark">{{ internal_page.specific.type }}</div>
{% elif internal_page.specific.category %}
<div class="tag tag--dark">{{ internal_page.specific.category }}</div>
{% endif %}
</div>
{% endif %}
Expand Down

0 comments on commit bcfd9b4

Please sign in to comment.