diff --git a/Gemfile b/Gemfile index f254794..22d93c5 100644 --- a/Gemfile +++ b/Gemfile @@ -67,3 +67,5 @@ end group :production do gem 'mysql2' end + +gem 'high_voltage', '~> 2.4.0' diff --git a/Gemfile.lock b/Gemfile.lock index 56694dc..ee4a0a7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,6 +92,7 @@ GEM globalid (0.3.6) activesupport (>= 4.1.0) hashie (3.4.2) + high_voltage (2.4.0) i18n (0.7.0) jbuilder (2.3.1) activesupport (>= 3.0.0, < 5) @@ -234,6 +235,7 @@ DEPENDENCIES devise factory_girl_rails faker + high_voltage (~> 2.4.0) jbuilder (~> 2.0) jquery-rails mysql2 diff --git a/app/views/pages/landing.html.erb b/app/views/pages/landing.html.erb new file mode 100644 index 0000000..31184f6 --- /dev/null +++ b/app/views/pages/landing.html.erb @@ -0,0 +1,9 @@ +

Hallo

+ +<% if user_signed_in? %> +

Yeah! Je bent ingelogd.

+<% else %> + Log een keer in! +

<%= link_to "Log in met Zeus WPI", user_omniauth_authorize_path(:zeuswpi) %>

+<% end %> + diff --git a/config/routes.rb b/config/routes.rb index 6547aea..c800bae 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,6 +3,8 @@ Rails.application.routes.draw do omniauth_callbacks: 'callbacks' } + root to: 'high_voltage/pages#show', id: "landing" + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".