A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
674 B

# Geocoding
#
# Access to OSM controls
class MapsController < ApplicationController
has_scope :city, :region, :locality, :tag, :daylimit, :year
has_scope :near, type: :hash, using: %i[location distance]
has_scope :future, type: :boolean, default: true
has_scope :period, type: :hash, using: %i[year week]
def index
respond_to do |format|
format.html
format.json { @events = apply_scopes Event.moderated.geo }
end
end
def show
@kind = Kind.find_by name: params[:id]
respond_to do |format|
format.html
format.json do
@orgas = apply_scopes(Orga.moderated.active.geo).where kind: @kind
end
end
end
end