Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
cms/landing page: add donate button to hero block if link is set in s…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
fuzzylogic2000 committed Aug 5, 2019
1 parent df8cacf commit 2116350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/cms/pages/templates/a4_candy_cms_pages/home_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ <h1 class="homepage-header__teaser ml-md-4">{{ page.teaser|richtext }}</h1>
<img src="{{ image.url }}" alt="{{ image.alt }}" class="homepage-header__image" />
</div>
</div>
{% if settings.a4_candy_cms_settings.ImportantPages.donate_link %}
<div class="row">
<div class="col-lg-6 offset-lg-6 d-flex">
<a class="btn btn--full btn--secondary-filled homepage-header__btn" href="">{% trans 'Filler text which will be changed in settings' %}<br><b>{% trans 'Donate Now' %}</b></a>
<a class="btn btn--full btn--secondary-filled homepage-header__btn" href="{{ settings.a4_candy_cms_settings.ImportantPages.donate_link.url }}">{% trans 'Support the further development of the platform' %}<br><b>{% trans 'Donate Now' %}</b></a>
</div>
</div>
{% endif %}
</div>

<div>{{ page.body|richtext }}</div>
Expand Down
2 changes: 1 addition & 1 deletion liqd_product/templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
{% if pages.donate_link %}
<div class="col-12 col-sm-6 offset-sm-6 offset-lg-0 d-flex flex-column px-0 pl-sm-3">
<a href="{{ pages.contact.url }}" class="btn btn--full btn--secondary-filled mb-0 mr-0">{% trans 'Support the further development of the platform' %}<br><b>{% trans 'Donate now' %}</b></a>
<a href="{{ pages.donate_link.url }}" class="btn btn--full btn--secondary-filled mb-0 mr-0">{% trans 'Support the further development of the platform' %}<br><b>{% trans 'Donate now' %}</b></a>
</div>
{% endif %}
{% endwith %}
Expand Down

0 comments on commit 2116350

Please sign in to comment.