Make the donation form (right sidebar) optional. Show or hide via application.yml .

This commit is contained in:
Pistos 2011-10-29 00:42:09 -04:00
parent 43b34d5290
commit d643f7e893
2 changed files with 15 additions and 11 deletions

View file

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

View file

@ -67,6 +67,9 @@ defaults: &defaults
# Email to send spotlight suggestions to # Email to send spotlight suggestions to
spotlight_suggest_email: '' 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 # List of users who have admin privileges
# (expressed as an array of local usernames) # (expressed as an array of local usernames)
admins: admins: