add webstats_tracking_code to configuration screen (closes foodcoops#311)

This commit is contained in:
wvengen 2014-09-22 09:36:00 +02:00
parent 81d22e6077
commit 668ba1e5d6
3 changed files with 9 additions and 6 deletions

View file

@ -3,3 +3,4 @@
= config_input form, :use_nick, as: :boolean
= config_input form, :tolerance_is_costly, as: :boolean
= config_input form, :help_url, as: :url, input_html: {class: 'input-xlarge'}
= config_input form, :webstats_tracking_code, as: :text, input_html: {class: 'input-xxlarge', rows: 3}

View file

@ -91,9 +91,14 @@ default: &defaults
# Page footer (html allowed). Default is a Foodsoft footer. Set to `blank` for no footer.
#page_footer: <a href="http://www.foodcoop.test/">FC Test</a> is supported by <a href="http://www.hoster.test/">Hoster</a>.
# Custom css for the foodcoop
# Custom CSS for the foodcoop
#custom_css: 'body { background-color: #fcffba; }'
# Uncomment to add tracking code for web statistics, e.g. for Piwik. (Added to bottom of page)
#webstats_tracking_code: |
# <!-- Piwik -->
# ......
# email address to be used as sender
email_sender: foodsoft@foodcoop.test
@ -123,11 +128,6 @@ default: &defaults
encoding: utf8
socket: /opt/lampp/var/mysql/mysql.sock
# Uncomment to add tracking code for web statistics, e.g. piwik
#webstats_tracking_code: |
# <!-- Piwik -->
# ......
development:
<<: *defaults

View file

@ -468,6 +468,7 @@ en:
use_messages: Allow members to communicate with each other within Foodsoft.
use_nick: Show and use nicknames instead of real names. When enabling this, please check that each user has a nickname.
use_wiki: Enable editable wiki pages.
webstats_tracking_code: Tracking code for web analytics (like Piwik or Google analytics). Leave empty for no tracking.
keys:
applepear_url: Apple system help URL
contact:
@ -504,6 +505,7 @@ en:
use_messages: Enable messages
use_nick: Use nicknames
use_wiki: Enable wiki
webstats_tracking_code: Tracking code
tabs:
foodcoop: Foodcoop
language: Language