views: remove old design's navbars
This commit is contained in:
parent
a503417298
commit
334e50d4f8
11 changed files with 0 additions and 79 deletions
|
@ -9,7 +9,6 @@ class ApplicationController < ActionController::Base
|
|||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception, if: -> { !Rails.env.test? }
|
||||
before_action :set_current_roles
|
||||
before_action :load_navbar_left_pannel_partial_url
|
||||
before_action :set_sentry_user
|
||||
before_action :redirect_if_untrusted
|
||||
before_action :reject, if: -> { feature_enabled?(:maintenance_mode) }
|
||||
|
@ -30,14 +29,6 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
def load_navbar_left_pannel_partial_url
|
||||
controller = request.controller_class
|
||||
method = params[:action]
|
||||
service = RenderPartialService.new(controller, method)
|
||||
@navbar_url = service.navbar
|
||||
@left_pannel_url = service.left_panel
|
||||
end
|
||||
|
||||
def multiple_devise_profile_connect?
|
||||
user_signed_in? && instructeur_signed_in? ||
|
||||
instructeur_signed_in? && administrateur_signed_in? ||
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
.col-xs-2
|
||||
%a#title-navbar{ href: root_path }
|
||||
.row#home
|
||||
.col-lg-6.no-padding
|
||||
= image_tag('marianne.svg', class: 'logo')
|
||||
.col-lg-6.no-padding#tps-title
|
||||
= APPLICATION_NAME
|
||||
|
||||
.col-xs-10.no-padding
|
||||
#navbar-body
|
||||
.row
|
||||
%div{ style: "max-width: 50%; position: absolute; display: flex; flex-direction: column; justify-content: center; height: 60px; line-height: 20px; z-index: 2;" }
|
||||
%span
|
||||
👉 Besoin d’aide ? Consultez <a target="_blank" rel="noopener" href="#{DOC_URL}">la documentation</a> et <a target="_blank" rel="noopener" href="#{FAQ_URL}">l’aide</a>, contactez-nous par <a style="cursor:hand" onclick="$crisp.push(['do', 'chat:open'])">chat</a> ou <a href="#{contact_admin_path}" target="_blank" rel="noopener">email</a>, ou <a target="_blank" rel="noopener" href="#{CALENDLY_URL}">prenez RDV</a>.
|
||||
-# BEST WTF EVER
|
||||
-# this begin rescue hides potentials bugs by displaying another navbar
|
||||
- begin
|
||||
= render partial: @navbar_url
|
||||
- rescue
|
||||
= render partial: 'layouts/navbars/navbar_default'
|
||||
|
||||
= render partial: 'layouts/navbars/navbar_log_options'
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1,26 +0,0 @@
|
|||
.col-xs-7.main-info
|
||||
|
||||
.col-xs-3.options
|
||||
%div{ style: "decorate: none; display: flex; box-shadow: none; float: right; display: flex; margin-top: 5px" }
|
||||
%div{ style: "vertical-align: middle; margin-right: 10px; margin-top: auto; margin-bottom: auto;" }
|
||||
= current_administrateur.email
|
||||
.dropdown#admin_menu
|
||||
%button.btn.btn-default.dropdown-toggle#dropdownMenuAdmin{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false }
|
||||
%i.fa.fa-cog
|
||||
%span.caret
|
||||
%ul.dropdown-menu.dropdown-menu-right
|
||||
%li
|
||||
= link_to(admin_procedures_path, id: :menu_item_procedure) do
|
||||
%i.fa.fa-list{ style: "background-size: 10px;" }
|
||||
|
||||
= t('dynamics.admin.menu.procedures')
|
||||
%li
|
||||
= link_to(admin_instructeurs_path) do
|
||||
%i.fa.fa-user
|
||||
|
||||
= t('dynamics.admin.menu.instructeurs')
|
||||
%li.divider{ role: :separator }
|
||||
%li
|
||||
= link_to(profil_path, id: :profile) do
|
||||
%i.fa.fa-user
|
||||
Profil
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1 +0,0 @@
|
|||
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'
|
|
@ -1 +0,0 @@
|
|||
.col-xs-10
|
|
@ -1,15 +0,0 @@
|
|||
- if user_signed_in?
|
||||
#sign-out.col-xs-2.no-padding
|
||||
= render partial: 'users/login_banner'
|
||||
= render partial: 'layouts/credentials'
|
||||
- elsif instructeur_signed_in?
|
||||
#sign-out.col-xs-2.no-padding
|
||||
= render partial: 'instructeurs/login_banner'
|
||||
= render partial: 'layouts/credentials'
|
||||
- elsif administrateur_signed_in?
|
||||
#sign-out.col-xs-2.no-padding
|
||||
= render partial: 'administrateurs/login_banner'
|
||||
= render partial: 'layouts/credentials'
|
||||
- else
|
||||
#sign-in.col-xs-2
|
||||
= link_to "Connexion", new_user_session_path, :class => 'btn btn-lg btn-primary'
|
Loading…
Reference in a new issue