Introduce Public::HomeController

This commit is contained in:
Petko Bordjukov 2015-08-15 06:00:07 +03:00
parent 65133515dc
commit f7737f0e8e
5 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,6 @@
module Public
class HomeController < Public::ApplicationController
def index
end
end
end

View File

@ -2,7 +2,7 @@ Rails.application.routes.draw do
devise_for :users devise_for :users
scope module: :public, constraints: {subdomain: 'cfp'}, conference_id: 1 do scope module: :public, constraints: {subdomain: 'cfp'}, conference_id: 1 do
root to: 'events#index' root to: 'home#index'
resource :personal_profile, path: 'profile' resource :personal_profile, path: 'profile'
resources :events resources :events
end end

View File

@ -0,0 +1 @@
=> link_to t('views.welcome.submit_event', event_type: event_type.name.mb_chars.downcase), new_event_path(type: event_type.id), class: 'btn-link btn-link-large'

View File

@ -0,0 +1,6 @@
li
p
strong
= track.name
span<>
= track.description

View File

@ -0,0 +1,14 @@
h1.entry-title = t :home_title, conference: current_conference.title
= simple_format current_conference.description
p = t :what_we_ask
ul
= render partial: 'track', collection: current_conference.tracks
p = t :license_notice
- if current_conference.call_for_participation.in_progress?
.centered.large
= render partial: 'event_type', collection: current_conference.event_types