28 lines
555 B
Ruby
28 lines
555 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Home
|
|
class HomeController < ApplicationController
|
|
layout 'home_layout'
|
|
|
|
def index
|
|
prepare_filters
|
|
@dotations = Dotation.extra_search(params[:search]).public_dot
|
|
.point_desc.end_date_asc.page(params[:page])
|
|
end
|
|
|
|
def contact; end
|
|
|
|
def show
|
|
@dotation = Dotation.find(params[:id])
|
|
@company_sizes = CompanySize.all
|
|
end
|
|
|
|
private
|
|
|
|
def prepare_filters
|
|
@company_sizes = CompanySize.all
|
|
@company_activities = CompanyActivity.all
|
|
@projects = Project.all
|
|
end
|
|
end
|