views: remove old design's navbars

This commit is contained in:
Pierre de La Morinerie 2021-02-02 15:29:32 +01:00
parent a503417298
commit 334e50d4f8
11 changed files with 0 additions and 79 deletions

View file

@ -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? ||

View file

@ -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 daide ? Consultez <a target="_blank" rel="noopener" href="#{DOC_URL}">la documentation</a> et <a target="_blank" rel="noopener" href="#{FAQ_URL}">laide</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'

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -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;" }
&nbsp;
= t('dynamics.admin.menu.procedures')
%li
= link_to(admin_instructeurs_path) do
%i.fa.fa-user
&nbsp;
= t('dynamics.admin.menu.instructeurs')
%li.divider{ role: :separator }
%li
= link_to(profil_path, id: :profile) do
%i.fa.fa-user
&nbsp;Profil

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -1 +0,0 @@
= render partial: 'layouts/navbars/navbar_admin_procedurescontroller_index'

View file

@ -1 +0,0 @@
.col-xs-10

View file

@ -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'