mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 06:15:44 -04:00
Merge branch 'dev' into fix-1989
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
class ForumsController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
respond_to :html, :json
|
||||
responders :flash
|
||||
|
||||
# GET /forums
|
||||
# GET /forums.json
|
||||
|
||||
@@ -2,6 +2,7 @@ class GardensController < ApplicationController
|
||||
before_action :authenticate_member!, except: %i(index show)
|
||||
after_action :expire_homepage, only: %i(create destroy)
|
||||
load_and_authorize_resource
|
||||
responders :flash
|
||||
respond_to :html, :json
|
||||
|
||||
# GET /gardens
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
class PostsController < ApplicationController
|
||||
before_action :authenticate_member!, except: %i(index show)
|
||||
load_and_authorize_resource
|
||||
responders :flash
|
||||
respond_to :html, :json
|
||||
respond_to :rss, only: %i(index show)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
class SeedsController < ApplicationController
|
||||
before_action :authenticate_member!, except: %i(index show)
|
||||
load_and_authorize_resource
|
||||
responders :flash
|
||||
respond_to :html, :json
|
||||
respond_to :csv, only: :index
|
||||
respond_to :rss, only: :index
|
||||
|
||||
@@ -46,8 +46,10 @@
|
||||
= link_to t('.posts'), member_posts_path(current_member), class: 'dropdown-item'
|
||||
|
||||
- if current_member.notifications.unread_count.positive?
|
||||
= link_to(t('.inbox_unread', unread_count: current_member.notifications.unread_count),
|
||||
notifications_path)
|
||||
.dropdown-divider
|
||||
%strong= link_to(t('.inbox_unread',
|
||||
unread_count: current_member.notifications.unread_count),
|
||||
notifications_path, class: 'dropdown-item')
|
||||
- else
|
||||
= link_to t('.inbox'), notifications_path, class: 'dropdown-item'
|
||||
|
||||
|
||||
3
config/initializers/leaflet.rb
Normal file
3
config/initializers/leaflet.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
Leaflet.tile_layer = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
|
||||
Leaflet.attribution = '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
|
||||
Leaflet.max_zoom = 18
|
||||
Reference in New Issue
Block a user