]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Allow showing donate button for selected posts
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:22:27 +0000 (13:22 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:22:27 +0000 (13:22 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/modules/post.html

index bc82b24052d68f4aa4954a6f69bd1438dee357d7..69f0a05edcd21cf1e7806af9d73aefe2ac321314 100644 (file)
@@ -36,7 +36,9 @@
                        <a class="btn btn-primary" href="https://www.ipfire.org/download/{{ post.release.slug }}">
                                {{ _("Download %s now") % post.release }} <!-- XXX icon -->
                        </a>
+               {% end %}
 
+               {% if post.release or "donate" in post.tags %}
                        <a class="btn btn-outline-primary ml-2" href="https://www.ipfire.org/donate">
                                <svg class="icon i_heart"><use xlink:href="#heart"/></svg> {{ _("Donate") }}
                        </a>