Merge pull request #2273 from Pistos/donate-optional

Make the donation form (right sidebar) optional.
This commit is contained in:
Daniel Grippi 2011-10-29 21:00:46 -07:00
commit d6b68d2f9b
2 changed files with 15 additions and 11 deletions

View file

@ -69,13 +69,14 @@
.content
!= t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet))
.section
.title
= image_tag('/images/icons/coffee.png')
%h5
= t('aspects.index.donate')
.content
= t('aspects.index.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host)
%br
= render 'shared/donate'
- if ! AppConfig['do_not_request_donations']
.section
.title
= image_tag('/images/icons/coffee.png')
%h5
= t('aspects.index.donate')
.content
= t('aspects.index.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host)
%br
= render 'shared/donate'

View file

@ -67,6 +67,9 @@ defaults: &defaults
# Email to send spotlight suggestions to
spotlight_suggest_email: ''
# Set this to true to remove the donation request form in the right sidebar
do_not_request_donations: false
# List of users who have admin privileges
# (expressed as an array of local usernames)
admins: