Introduce Public::HomeController
This commit is contained in:
parent
65133515dc
commit
f7737f0e8e
|
@ -0,0 +1,6 @@
|
|||
module Public
|
||||
class HomeController < Public::ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
||||
end
|
|
@ -2,7 +2,7 @@ Rails.application.routes.draw do
|
|||
devise_for :users
|
||||
|
||||
scope module: :public, constraints: {subdomain: 'cfp'}, conference_id: 1 do
|
||||
root to: 'events#index'
|
||||
root to: 'home#index'
|
||||
resource :personal_profile, path: 'profile'
|
||||
resources :events
|
||||
end
|
||||
|
|
|
@ -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'
|
|
@ -0,0 +1,6 @@
|
|||
li
|
||||
p
|
||||
strong
|
||||
= track.name
|
||||
span<> –
|
||||
= track.description
|
|
@ -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
|
Loading…
Reference in New Issue