From 8eea4337afb782fe968319066b12e1356f735d78 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 2 Mar 2017 16:39:05 +1100 Subject: [PATCH] use jquery to render a link where there is no plugin outlet --- .../connectors/user-profile-primary/link.hbs | 5 ----- plugin.rb | 12 ++++++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs diff --git a/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs b/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs deleted file mode 100644 index 6fb4ef1..0000000 --- a/assets/javascripts/discourse/templates/connectors/user-profile-primary/link.hbs +++ /dev/null @@ -1,5 +0,0 @@ -{{#if siteSettings.discourse_donations_enabled}} -
- Donate -
-{{/if}} diff --git a/plugin.rb b/plugin.rb index bb5c5ce..89aa6d9 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: discourse-donations # about: Integrating Discourse with Stripe for donations -# version: 1.6.8 +# version: 1.7.0 # url: https://github.com/choiceaustralia/discourse-donations # authors: Rimian Perkins @@ -11,7 +11,15 @@ load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__) enabled_site_setting :discourse_donations_enabled after_initialize do - header_script = '' + header_script = <<-EOF.strip_heredoc.chomp + + +EOF discourse_donations_customization = SiteCustomization.find_or_create_by({ name: 'Discourse Donations Header',