only show the link when the plugin is enabled

This commit is contained in:
Rimian Perkins
2017-02-27 12:52:00 +11:00
parent a77cf00504
commit 65317324f2
4 changed files with 14 additions and 4 deletions
@@ -1,4 +1,5 @@
<div class="discourse-donations">
<a href="/users/{{model.username}}/payments">Donate</a>
</div>
{{#if siteSettings.discourse_donations_enabled}}
<div class="discourse-donations">
<a href="/users/{{model.username}}/payments">Donate</a>
</div>
{{/if}}