Skip to content

Commit

Permalink
Improve condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Oct 3, 2024
1 parent 1986ad6 commit 48269d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/onegov/org/templates/newsletter_collection.pt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</div>

<p tal:condition="categories and 'sign up' in button_text.lower()">
<p tal:condition="categories and update_link and 'update' not in button_text.lower()">
<span i18n:translate>To update your subscription, please use this <tal:b i18n:name="Link"><a href="${update_link}">Link</a></tal:b></span>
</p>

Expand Down
2 changes: 1 addition & 1 deletion src/onegov/town6/templates/newsletter_collection.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
</div>

<p tal:condition="categories and 'sign up' in button_text.lower()">
<p tal:condition="categories and update_link and 'update' not in button_text.lower()">
<span i18n:translate>To update your subscription, please use this <tal:b i18n:name="Link"><a href="${update_link}">Link</a></tal:b></span>
</p>

Expand Down

0 comments on commit 48269d1

Please sign in to comment.