demarches-normaliennes/app/controllers/root_controller.rb
Xavier J 51c145d2ce Update landing page :
- Release scrape on Github
- Add presentation video
- Add demonstration link for gestionnaire and user
2016-02-16 12:01:39 +01:00

18 lines
No EOL
372 B
Ruby

class RootController < ApplicationController
def index
if user_signed_in?
redirect_to users_dossiers_path
elsif gestionnaire_signed_in?
redirect_to backoffice_dossiers_path
elsif administrateur_signed_in?
redirect_to admin_procedures_path
else
@latest_release = Github::Releases.latest
render 'landing'
end
end
end