mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-23 17:47:49 -05:00
Merge branch 'dev' into update-crop-page-titles
This commit is contained in:
5
Gemfile
5
Gemfile
@@ -136,6 +136,11 @@ gem "gbifrb"
|
||||
|
||||
gem "msgpack"
|
||||
|
||||
# Pinned due to RAILS_ENV=production bundle exec rake assets:precompile failing with ArgumentError: wrong number of arguments (given 1, expected 0) (ArgumentError)
|
||||
# /tmp/build_8301a541/vendor/bundle/ruby/3.3.0/gems/connection_pool-3.0.2/lib/connection_pool.rb:48:in `initialize'
|
||||
# /tmp/build_8301a541/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.3/lib/active_support/cache/mem_cache_store.rb:63:in `new'
|
||||
gem "connection_pool", "< 3"
|
||||
|
||||
group :production do
|
||||
gem 'bonsai-elasticsearch-rails' # Integration with Bonsa-Elasticsearch on heroku
|
||||
gem 'dalli'
|
||||
|
||||
27
Gemfile.lock
27
Gemfile.lock
@@ -254,9 +254,9 @@ GEM
|
||||
discard (1.4.0)
|
||||
activerecord (>= 4.2, < 9.0)
|
||||
domain_name (0.6.20240107)
|
||||
dotenv (3.1.8)
|
||||
dotenv-rails (3.1.8)
|
||||
dotenv (= 3.1.8)
|
||||
dotenv (3.2.0)
|
||||
dotenv-rails (3.2.0)
|
||||
dotenv (= 3.2.0)
|
||||
railties (>= 6.1)
|
||||
drb (2.2.3)
|
||||
dumb_delegator (1.1.0)
|
||||
@@ -284,7 +284,7 @@ GEM
|
||||
factory_bot_rails (6.5.1)
|
||||
factory_bot (~> 6.5)
|
||||
railties (>= 6.1.0)
|
||||
faker (3.5.2)
|
||||
faker (3.5.3)
|
||||
i18n (>= 1.8.11, < 2)
|
||||
faraday (2.14.0)
|
||||
faraday-net_http (>= 2.0, < 3.5)
|
||||
@@ -296,7 +296,7 @@ GEM
|
||||
flickraw (0.9.10)
|
||||
font-awesome-sass (5.15.1)
|
||||
sassc (>= 1.11)
|
||||
friendly_id (5.5.1)
|
||||
friendly_id (5.6.0)
|
||||
activerecord (>= 4.0.0)
|
||||
gbifrb (0.2.0)
|
||||
geocoder (1.8.6)
|
||||
@@ -312,7 +312,7 @@ GEM
|
||||
gravatar-ultimate (2.0.0)
|
||||
activesupport (>= 2.3.14)
|
||||
rack
|
||||
haml (7.0.2)
|
||||
haml (7.1.0)
|
||||
temple (>= 0.8.2)
|
||||
thor
|
||||
tilt
|
||||
@@ -462,7 +462,7 @@ GEM
|
||||
nokogiri (1.18.10-x86_64-linux-gnu)
|
||||
racc (~> 1.4)
|
||||
oauth (0.5.6)
|
||||
oj (3.16.12)
|
||||
oj (3.16.13)
|
||||
bigdecimal (>= 3.0)
|
||||
ostruct (>= 0.2)
|
||||
omniauth (1.9.2)
|
||||
@@ -571,7 +571,7 @@ GEM
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rdoc (6.16.1)
|
||||
rdoc (6.17.0)
|
||||
erb
|
||||
psych (>= 4.0.0)
|
||||
tsort
|
||||
@@ -675,7 +675,7 @@ GEM
|
||||
ruby-units (4.1.0)
|
||||
ruby-vips (2.2.1)
|
||||
ffi (~> 1.12)
|
||||
rubyzip (3.2.1)
|
||||
rubyzip (3.2.2)
|
||||
sass (3.7.4)
|
||||
sass-listen (~> 4.0.0)
|
||||
sass-listen (4.0.0)
|
||||
@@ -689,13 +689,13 @@ GEM
|
||||
sprockets (> 3.0)
|
||||
sprockets-rails
|
||||
tilt
|
||||
scout_apm (5.8.0)
|
||||
scout_apm (6.0.0)
|
||||
parser
|
||||
searchkick (5.3.1)
|
||||
activemodel (>= 6.1)
|
||||
hashie
|
||||
securerandom (0.4.1)
|
||||
selenium-webdriver (4.38.0)
|
||||
selenium-webdriver (4.39.0)
|
||||
base64 (~> 0.2)
|
||||
logger (~> 1.4)
|
||||
rexml (~> 3.2, >= 3.2.5)
|
||||
@@ -719,7 +719,7 @@ GEM
|
||||
activesupport (>= 5.2)
|
||||
sprockets (>= 3.0.0)
|
||||
ssrf_filter (1.1.2)
|
||||
stringio (3.1.8)
|
||||
stringio (3.1.9)
|
||||
sysexits (1.2.0)
|
||||
temple (0.10.4)
|
||||
terminal-table (4.0.0)
|
||||
@@ -730,7 +730,7 @@ GEM
|
||||
thread_safe (0.3.6)
|
||||
tilt (2.6.1)
|
||||
timecop (0.9.10)
|
||||
timeout (0.4.4)
|
||||
timeout (0.5.0)
|
||||
tsort (0.2.0)
|
||||
tzinfo (2.0.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
@@ -800,6 +800,7 @@ DEPENDENCIES
|
||||
chartkick
|
||||
coffee-rails
|
||||
comfortable_mexican_sofa!
|
||||
connection_pool (< 3)
|
||||
crowdin-cli
|
||||
csv_shaper
|
||||
dalli
|
||||
|
||||
835
app/assets/images/girlwithvegetables-0038331hotifw.svg
Normal file
835
app/assets/images/girlwithvegetables-0038331hotifw.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 266 KiB |
@@ -33,4 +33,4 @@
|
||||
|
||||
@view-transition {
|
||||
navigation: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,6 @@ class HomeController < ApplicationController
|
||||
# the relevant class methods directly in the view, so that fragment
|
||||
# caching will be effective.
|
||||
end
|
||||
|
||||
def community_gardens; end
|
||||
end
|
||||
|
||||
37
app/views/home/community_gardens.html.haml
Normal file
37
app/views/home/community_gardens.html.haml
Normal file
@@ -0,0 +1,37 @@
|
||||
- content_for :title do
|
||||
= t('community_gardens.title')
|
||||
- content_for :meta_description do
|
||||
= t('community_gardens.meta_description')
|
||||
|
||||
|
||||
|
||||
.container.mt-5
|
||||
|
||||
.row
|
||||
.col-lg-6.col-sm-12
|
||||
.row
|
||||
%h1.display-4= t('community_gardens.header')
|
||||
%p.lead= t('community_gardens.lead')
|
||||
.row
|
||||
%h2= t('community_gardens.features_title')
|
||||
%ul
|
||||
%li Track all your plantings and harvests
|
||||
%li Keep notes your community's progress
|
||||
%li Add collaborators to your garden plots
|
||||
%li See what other community gardens are growing
|
||||
%li Get advice and support from our community of gardeners
|
||||
|
||||
.row
|
||||
%h2= t('community_gardens.get_started')
|
||||
%p= t('community_gardens.get_started_text')
|
||||
%p
|
||||
= link_to t('.sign_up'), new_member_registration_path, class: 'btn btn-success btn-lg'
|
||||
.row
|
||||
%h2= t('community_gardens.collaborate')
|
||||
%p= t('community_gardens.collaborate_text')
|
||||
%p
|
||||
= link_to t('community_gardens.learn_more'), gardens_path, class: 'btn btn-info btn-lg'
|
||||
|
||||
.col-lg-6.d-lg-block.d-xs-none
|
||||
.container
|
||||
=image_tag("girlwithvegetables-0038331hotifw.svg", width: "100%")
|
||||
@@ -52,6 +52,7 @@
|
||||
.dropdown-menu{"aria-labelledby" => "navbarDropdown"}
|
||||
= link_to t('.community_map'), places_path, class: 'dropdown-item'
|
||||
= link_to t('.browse_members'), members_path, class: 'dropdown-item'
|
||||
= link_to t('.community_gardens'), community_gardens_path, class: 'dropdown-item'
|
||||
= link_to t('.posts'), posts_path, class: 'dropdown-item'
|
||||
= link_to t('.forums'), forums_path, class: 'dropdown-item'
|
||||
|
||||
|
||||
@@ -219,6 +219,18 @@ en:
|
||||
pwa_ios_steps_html: 1. Tap the <strong>Share</strong> button in Safari.<br>2. Scroll down and tap <strong>Add to Home Screen</strong>'.
|
||||
pwa_ios_title: For iOS (iPhone/iPad)
|
||||
pwa_title: Want to install Growstuff on your phone?
|
||||
community_gardens:
|
||||
title: Community Gardens on Growstuff
|
||||
meta_description: Manage your community garden, track your plantings, and collaborate with other gardeners.
|
||||
header: Community Gardens
|
||||
lead: Growstuff is open source and the perfect place to manage your community garden. Track your plantings, celebrate your harvests, and collaborate with your fellow gardeners, all in one place.
|
||||
get_started: Get Started Today
|
||||
get_started_text: Signing up for Growstuff is free and easy. Create an account to start tracking your garden today.
|
||||
sign_up: Sign up for free
|
||||
collaborate: Collaborate with Your Team
|
||||
collaborate_text: Invite other gardeners to collaborate on your garden plots. Share the work, share the harvest, and grow together as a community.
|
||||
learn_more: Learn more about gardens
|
||||
features_title: Features for Community Gardens
|
||||
label:
|
||||
days_until_harvest: "%{number} days"
|
||||
weeks_until_harvest: "%{number} weeks until harvest"
|
||||
@@ -235,6 +247,7 @@ en:
|
||||
browse_members: Browse Members
|
||||
community: Community
|
||||
community_map: Community Map
|
||||
community_gardens: Community Gardens
|
||||
garden_type: Garden Type
|
||||
garden_types: Garden Types
|
||||
crop_wrangling: Crop Wrangling
|
||||
|
||||
@@ -23,6 +23,7 @@ Rails.application.routes.draw do
|
||||
resources :authentications, only: %i(create destroy)
|
||||
|
||||
get "home/index"
|
||||
get '/community-gardens', to: 'home#community_gardens'
|
||||
root to: 'home#index'
|
||||
|
||||
concern :has_photos do
|
||||
|
||||
Reference in New Issue
Block a user