From 39bbde576025559c7e144c8c6bf9bc76ce6f1a5e Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Mon, 6 Mar 2017 15:38:07 +1100 Subject: [PATCH] only show link for current user --- .../templates/connectors/extra-nav-item/donate.hbs | 8 +++++--- plugin.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/discourse/templates/connectors/extra-nav-item/donate.hbs b/assets/javascripts/discourse/templates/connectors/extra-nav-item/donate.hbs index 6903351..ba8cf92 100644 --- a/assets/javascripts/discourse/templates/connectors/extra-nav-item/donate.hbs +++ b/assets/javascripts/discourse/templates/connectors/extra-nav-item/donate.hbs @@ -1,3 +1,5 @@ - - {{i18n 'discourse_donations.title'}} - +{{#if currentUser.username}} + + {{i18n 'discourse_donations.title'}} + +{{/if}} diff --git a/plugin.rb b/plugin.rb index 02bae9a..1a57e3b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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