Merge branch 'dev' into fix-1989

This commit is contained in:
Brenda Wallace
2019-07-09 22:10:30 +12:00
committed by GitHub
6 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
class ForumsController < ApplicationController
load_and_authorize_resource
respond_to :html, :json
responders :flash
# GET /forums
# GET /forums.json

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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'

View File

@@ -0,0 +1,3 @@
Leaflet.tile_layer = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
Leaflet.attribution = '&copy; <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