only show link for current user

This commit is contained in:
Rimian Perkins 2017-03-06 15:38:07 +11:00
parent 011ae1b2be
commit 39bbde5760
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
<a href="/user/{{currentUser.username}}/payments">
{{i18n 'discourse_donations.title'}}
</a>
{{#if currentUser.username}}
<a href="/user/{{currentUser.username}}/payments">
{{i18n 'discourse_donations.title'}}
</a>
{{/if}}

View File

@ -1,6 +1,6 @@
# name: discourse-donations
# about: Integrating Discourse with Stripe for donations
# version: 1.8.0
# version: 1.8.1
# url: https://github.com/choiceaustralia/discourse-donations
# authors: Rimian Perkins