mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-04 05:44:52 -04:00
Changed one config setting (site name) over to figaro
Also massively simplified the original application.yml.example I originally committed. Let's do this one step at a time.
This commit is contained in:
@@ -15,6 +15,6 @@
|
||||
= will_paginate @comments
|
||||
|
||||
%p
|
||||
Subscribe to the #{Growstuff::Application.config.site_name}
|
||||
Subscribe to the #{ENV['GROWSTUFF_SITE_NAME']}
|
||||
= succeed "." do
|
||||
= link_to "comments RSS feed", comments_path(:format => 'rss')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title #{Growstuff::Application.config.site_name} - Recent comments on all posts
|
||||
%title #{ENV['GROWSTUFF_SITE_NAME']} - Recent comments on all posts
|
||||
%link= comments_url
|
||||
- @comments.each do |comment|
|
||||
%item
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
%b
|
||||
Planted
|
||||
= pluralize(crop.plantings.size, "time")
|
||||
by #{Growstuff::Application.config.site_name} members
|
||||
by #{ENV['GROWSTUFF_SITE_NAME']} members
|
||||
|
||||
- if can? :create, Planting
|
||||
= link_to 'Plant this', new_planting_path(:params => { :crop_id => crop.id }), :class => 'btn btn-primary'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- content_for :title, "Crops"
|
||||
|
||||
%p
|
||||
#{Growstuff::Application.config.site_name} tracks who's growing what, where.
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} tracks who's growing what, where.
|
||||
View any crop page to see which of our members have planted it and find
|
||||
information on how to grow it yourself.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title #{Growstuff::Application.config.site_name} - Recently added crops
|
||||
%title #{ENV['GROWSTUFF_SITE_NAME']} - Recently added crops
|
||||
%link= crops_url
|
||||
- @crops.each do |crop|
|
||||
%item
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
= @crop.name.titleize
|
||||
has been planted
|
||||
= pluralize(@crop.plantings.size, "time")
|
||||
by #{Growstuff::Application.config.site_name} members.
|
||||
by #{ENV['GROWSTUFF_SITE_NAME']} members.
|
||||
- else
|
||||
Nobody is growing this yet. You could be the first!
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- site_name = Growstuff::Application.config.site_name
|
||||
- site_name = ENV['GROWSTUFF_SITE_NAME']
|
||||
%p Hello #{@resource.login_name},
|
||||
|
||||
%p
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- site_name = Growstuff::Application.config.site_name
|
||||
- site_name = ENV['GROWSTUFF_SITE_NAME']
|
||||
%p Hello #{@resource.login_name},
|
||||
|
||||
%p
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- site_name = Growstuff::Application.config.site_name
|
||||
- site_name = ENV['GROWSTUFF_SITE_NAME']
|
||||
%p Hello #{@resource.login_name},
|
||||
|
||||
%p
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
The #{Growstuff::Application.config.site_name} newsletter is sent out
|
||||
The #{ENV['GROWSTUFF_SITE_NAME']} newsletter is sent out
|
||||
every few weeks. Check out our
|
||||
= link_to 'past newsletters', 'http://blog.growstuff.org/category/newsletter/'
|
||||
if you want to see the sort of thing we'll send you. Of course, we'll never spam you
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
.control-group
|
||||
.controls
|
||||
= f.check_box :newsletter
|
||||
Subscribe to the #{Growstuff::Application.config.site_name} newsletter
|
||||
Subscribe to the #{ENV['GROWSTUFF_SITE_NAME']} newsletter
|
||||
.help-inline
|
||||
= render :partial => 'newsletter_blurb'
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
.control-group
|
||||
.controls
|
||||
= f.check_box :newsletter, :checked => true
|
||||
Subscribe to the #{Growstuff::Application.config.site_name} newsletter
|
||||
Subscribe to the #{ENV['GROWSTUFF_SITE_NAME']} newsletter
|
||||
.help-inline
|
||||
= render :partial => 'newsletter_blurb'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- content_for :title, @owner ? "#{@owner}'s harvests" : "Everyone's harvests"
|
||||
|
||||
%p
|
||||
#{Growstuff::Application.config.site_name} helps you track what you're
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} helps you track what you're
|
||||
harvesting from your home garden and see how productive it is.
|
||||
|
||||
%p
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
.span12
|
||||
|
||||
%h1= Growstuff::Application.config.site_name
|
||||
%h1= ENV['GROWSTUFF_SITE_NAME']
|
||||
|
||||
.row-fluid
|
||||
.span8.info
|
||||
%p
|
||||
#{Growstuff::Application.config.site_name} is a community of food gardeners.
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} is a community of food gardeners.
|
||||
We're building an open source platform to help you learn about
|
||||
growing food, track what you plant and harvest, and swap
|
||||
seeds and produce with other gardeners near you.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
%h2 Open Source
|
||||
|
||||
%p
|
||||
#{Growstuff::Application.config.site_name} is open source software,
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} is open source software,
|
||||
which means that we share this website's code for free with our
|
||||
community and the world. We believe that openness,
|
||||
sustainability, and social good go hand in hand. You can read more
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
%h1
|
||||
Welcome to
|
||||
= succeed "," do
|
||||
= Growstuff::Application.config.site_name
|
||||
= ENV['GROWSTUFF_SITE_NAME']
|
||||
= current_member
|
||||
= render :partial => 'stats'
|
||||
%p
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%a.brand(href=root_path)= Growstuff::Application.config.site_name
|
||||
%a.brand(href=root_path)= ENV['GROWSTUFF_SITE_NAME']
|
||||
.nav-collapse.collapse
|
||||
%ul.nav
|
||||
%li= link_to "Crops", crops_path
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
- if (content_for?(:member_rss_login_name) && content_for(:member_rss_slug))
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/members", :action => 'show', :format => "rss", :id => yield(:member_rss_slug) }, { :title => "#{ Growstuff::Application.config.site_name }- #{yield(:member_rss_login_name)}'s posts" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/posts", :format => "rss" }, { :title => "#{ Growstuff::Application.config.site_name } - Recent posts from all members" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/crops", :format => "rss" }, { :title => "#{ Growstuff::Application.config.site_name } - Recently added crops" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/plantings", :format => "rss" }, { :title => "#{ Growstuff::Application.config.site_name } - Recent plantings from all members" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/members", :action => 'show', :format => "rss", :id => yield(:member_rss_slug) }, { :title => "#{ ENV['GROWSTUFF_SITE_NAME'] }- #{yield(:member_rss_login_name)}'s posts" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/posts", :format => "rss" }, { :title => "#{ ENV['GROWSTUFF_SITE_NAME'] } - Recent posts from all members" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/crops", :format => "rss" }, { :title => "#{ ENV['GROWSTUFF_SITE_NAME'] } - Recently added crops" })
|
||||
= auto_discovery_link_tag(:rss, { :controller => "/plantings", :format => "rss" }, { :title => "#{ ENV['GROWSTUFF_SITE_NAME'] } - Recent plantings from all members" })
|
||||
|
||||
%title
|
||||
= content_for?(:title) ? yield(:title) + " - #{ Growstuff::Application.config.site_name} " : Growstuff::Application.config.site_name
|
||||
= content_for?(:title) ? yield(:title) + " - #{ ENV['GROWSTUFF_SITE_NAME']} " : ENV['GROWSTUFF_SITE_NAME']
|
||||
= csrf_meta_tags
|
||||
/ Le HTML5 shim, for IE6-8 support of HTML elements
|
||||
/[if lt IE 9]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
= content_for :title, "#{Growstuff::Application.config.site_name} members"
|
||||
= content_for :title, "#{ENV['GROWSTUFF_SITE_NAME']} members"
|
||||
|
||||
%div.pagination
|
||||
= page_entries_info @members, :model => "members"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title #{Growstuff::Application.config.site_name} - #{@member.login_name}'s recent posts
|
||||
%title #{ENV['GROWSTUFF_SITE_NAME']} - #{@member.login_name}'s recent posts
|
||||
%link= member_url(@member)
|
||||
- @posts.each do |post|
|
||||
%item
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- site_name = Growstuff::Application.config.site_name
|
||||
- site_name = ENV['GROWSTUFF_SITE_NAME']
|
||||
%p Hello #{@notification.recipient.login_name},
|
||||
|
||||
%p
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
- content_for :title, "Photos"
|
||||
|
||||
%p Most recent photos added to #{Growstuff::Application.config.site_name}.
|
||||
%p Most recent photos added to #{ENV['GROWSTUFF_SITE_NAME']}.
|
||||
|
||||
%div.pagination
|
||||
= page_entries_info @photos, :model => "photos"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
%div#map{ :style => "height:300px"}
|
||||
|
||||
%h3
|
||||
= Growstuff::Application.config.site_name
|
||||
= ENV['GROWSTUFF_SITE_NAME']
|
||||
members near #{@place}
|
||||
|
||||
- if !@nearby_members.empty?
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title
|
||||
#{Growstuff::Application.config.site_name} - Recent plantings from #{ @owner ? @owner : 'all members' }
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} - Recent plantings from #{ @owner ? @owner : 'all members' }
|
||||
%link= plantings_url
|
||||
- @plantings.each do |planting|
|
||||
%item
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
= link_to "#{@author}'s posts RSS feed", posts_path(:format => 'rss')
|
||||
|
||||
- else
|
||||
Subscribe to the #{Growstuff::Application.config.site_name}
|
||||
Subscribe to the #{ENV['GROWSTUFF_SITE_NAME']}
|
||||
= link_to "posts RSS feed", posts_path(:format => 'rss')
|
||||
or
|
||||
= succeed "." do
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title
|
||||
#{Growstuff::Application.config.site_name} - Recent posts from #{ @author ? @author : 'all members' }
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} - Recent posts from #{ @author ? @author : 'all members' }
|
||||
%link= posts_url
|
||||
- @posts.each do |post|
|
||||
%item
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title #{Growstuff::Application.config.site_name} - Recent comments on #{@post.subject}
|
||||
%title #{ENV['GROWSTUFF_SITE_NAME']} - Recent comments on #{@post.subject}
|
||||
%link= post_url(@post)
|
||||
- @post.comments.each do |comment|
|
||||
%item
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
=link_to "Change your location.", edit_member_registration_path
|
||||
%span.help-block
|
||||
Are you interested in trading or swapping seeds with other
|
||||
#{Growstuff::Application.config.site_name} members? If you
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} members? If you
|
||||
list your seeds as available for trade, other members can
|
||||
contact you to request seeds. You can list any conditions or
|
||||
other information in the description, above.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- content_for :title, @owner ? "#{@owner}'s seeds" : "Everyone's seeds"
|
||||
|
||||
%p
|
||||
#{Growstuff::Application.config.site_name} helps you track your seed
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} helps you track your seed
|
||||
stash or trade seeds with other members.
|
||||
|
||||
%p
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%rss{:version => 2.0}
|
||||
%channel
|
||||
%title
|
||||
#{Growstuff::Application.config.site_name} - Recent seeds from #{ @owner ? @owner : 'all members' }
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} - Recent seeds from #{ @owner ? @owner : 'all members' }
|
||||
%link= seeds_url
|
||||
- @seeds.each do |seed|
|
||||
%item
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
= current_member.account.paid_until_string
|
||||
|
||||
- if ! current_member.is_paid?
|
||||
= link_to "Upgrade and support #{Growstuff::Application.config.site_name}", shop_path, :class => 'btn btn-primary'
|
||||
= link_to "Upgrade and support #{ENV['GROWSTUFF_SITE_NAME']}", shop_path, :class => 'btn btn-primary'
|
||||
|
||||
@@ -35,4 +35,3 @@ staging:
|
||||
|
||||
production:
|
||||
GROWSTUFF_SITE_NAME: Growstuff
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ Growstuff::Application.configure do
|
||||
}
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
|
||||
config.site_name = "Growstuff (dev)"
|
||||
config.host = 'localhost:8080'
|
||||
config.analytics_code = ''
|
||||
|
||||
|
||||
@@ -79,7 +79,6 @@ Growstuff::Application.configure do
|
||||
}
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
|
||||
config.site_name = "Growstuff"
|
||||
config.host = 'growstuff.org'
|
||||
config.analytics_code = <<-eos
|
||||
<script src="//static.getclicky.com/js" type="text/javascript"></script>
|
||||
|
||||
@@ -79,7 +79,6 @@ Growstuff::Application.configure do
|
||||
}
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
|
||||
config.site_name = "Growstuff (staging)"
|
||||
config.host = 'dev.growstuff.org'
|
||||
config.analytics_code = ''
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ Growstuff::Application.configure do
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||
|
||||
Growstuff::Application.configure do
|
||||
config.site_name = "Growstuff (test)"
|
||||
config.host = 'test.example.com'
|
||||
config.analytics_code = ''
|
||||
config.currency = 'AUD'
|
||||
|
||||
@@ -38,7 +38,7 @@ describe 'home/index.html.haml', :type => "view" do
|
||||
end
|
||||
|
||||
it 'should say welcome' do
|
||||
rendered.should contain "Welcome to #{Growstuff::Application.config.site_name}, #{@member.login_name}"
|
||||
rendered.should contain "Welcome to #{ENV['GROWSTUFF_SITE_NAME']}, #{@member.login_name}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ describe 'layouts/_header.html.haml', :type => "view" do
|
||||
end
|
||||
|
||||
it 'shows the title' do
|
||||
rendered.should contain Growstuff::Application.config.site_name
|
||||
rendered.should contain ENV['GROWSTUFF_SITE_NAME']
|
||||
end
|
||||
|
||||
it 'should have signup/signin links' do
|
||||
|
||||
Reference in New Issue
Block a user