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>
<div style="padding-top: 60px;">
<h1>{{i18n 'discourse_donations.title' site_name=siteSettings.title}}</h1>
<div class="donations-page-description">
{{cook-text siteSettings.discourse_donations_page_description}}
</div>
<div class="donations-page-payment">
{{stripe-card}}
</div>

View File

@ -1,7 +1,17 @@
div.stripe-errors {
border: 1px solid #c33;
border-radius: 5px;
color: #600;
background-color: #fdd;
padding: 5px 10px;
border: 1px solid #c33;
border-radius: 5px;
color: #600;
background-color: #fdd;
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_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_page_description: "Text to be added to /donate page. Markdown is supported."
js:
discourse_donations:
title: Donate

View File

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