Merge pull request #7 from chrisbeach/donate_page_description

Add page description setting
This commit is contained in:
Chris Beach 2018-02-02 07:38:18 +00:00 committed by GitHub
commit 23e30c7db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 7 deletions

View File

@ -1,4 +1,7 @@
<h1>{{i18n 'discourse_donations.title'}}</h1> <h1>{{i18n 'discourse_donations.title' site_name=siteSettings.title}}</h1>
<div style="padding-top: 60px;"> <div class="donations-page-description">
{{cook-text siteSettings.discourse_donations_page_description}}
</div>
<div class="donations-page-payment">
{{stripe-card}} {{stripe-card}}
</div> </div>

View File

@ -5,3 +5,13 @@ div.stripe-errors {
background-color: #fdd; background-color: #fdd;
padding: 5px 10px; padding: 5px 10px;
} }
.donations-page-description {
max-width: 700px;
font-size: 1.1em;
line-height: 24px;
}
.donations-page-payment {
padding-top: 60px;
}

View File

@ -11,6 +11,8 @@ en:
discourse_donations_billing_address: "Collect billing address" discourse_donations_billing_address: "Collect billing address"
discourse_donations_reward_badge_name: "Grant this badge to user when a payment is successful" discourse_donations_reward_badge_name: "Grant this badge to user when a payment is successful"
discourse_donations_reward_group_name: "Add the user to this group when a payment is successful" discourse_donations_reward_group_name: "Add the user to this group when a payment is successful"
discourse_donations_page_description: "Text to be added to /donate page. Markdown is supported."
js: js:
discourse_donations: discourse_donations:
title: Donate title: Donate

View File

@ -32,3 +32,6 @@ plugins:
discourse_donations_reward_group_name: discourse_donations_reward_group_name:
client: false client: false
default: 'Donation' default: 'Donation'
discourse_donations_page_description:
client: true
default: ''