Skip to content

Commit

Permalink
Merge pull request #1541 from CuBoulder/issue/1517
Browse files Browse the repository at this point in the history
Newsletters: allow unpublished to show in Email HTML preview
  • Loading branch information
jcsparks authored Dec 10, 2024
2 parents 71bfac8 + 8e01327 commit 46996a9
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@
<!--Feature Style Section-->
{% for key, item in paragraph.field_newsletter_section_select %}
{% if key|first != '#' %}
{# Unpublished check #}
{% if (item.entity.field_newsletter_article_select.entity and
item.entity.field_newsletter_article_select.entity.isPublished()) or
(item.entity.field_newsletter_content_title and
item.entity.field_newsletter_content_title.value|render)
or
item.entity.field_newsletter_content_text.value|render
%}
{# Code to render selected article content (thumbnail) #}
<!--Feature Article-->
<table role="presentation" width="600" style="padding-bottom: 20px;">
Expand Down Expand Up @@ -148,19 +140,11 @@
</tbody>
</table>
{% endif %}
{% endif %}
{% endfor %}
{% else %}
<!--Teaser Section-->
{% for key, item in paragraph.field_newsletter_section_select %}
{% if key|first != '#' %}
{# Unpublished check #}
{% if (item.entity.field_newsletter_article_select.entity and
item.entity.field_newsletter_article_select.entity.isPublished()) or
(item.entity.field_newsletter_content_title and
item.entity.field_newsletter_content_title.value|render)
or
item.entity.field_newsletter_content_text.value|render %}
<!--Teaser Article-->
<center align="left">
<table role="presentation" width="600" style="padding-top:20px; padding-bottom: 20px; border-bottom: solid 1px #cccccc;">
Expand Down Expand Up @@ -274,7 +258,6 @@
</tbody>
</table>
</center>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 46996a9

Please sign in to comment.