help: add a custom help dropdown in dossier context
This commit is contained in:
parent
ce9c5da6e1
commit
549b17f75e
8 changed files with 219 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
/ We can't use &. because the controller may not implement #nav_bar_profile
|
||||
-# We can't use &. because the controller may not implement #nav_bar_profile
|
||||
- nav_bar_profile = controller.try(:nav_bar_profile)
|
||||
- dossier = controller.try(:dossier_for_help)
|
||||
|
||||
.new-header{ class: current_page?(root_path) ? nil : "new-header-with-border" }
|
||||
.header-inner-content
|
||||
|
@ -95,4 +96,7 @@
|
|||
|
||||
%li
|
||||
.header-help
|
||||
= link_to 'Aide', FAQ_URL, class: "button primary", target: "_blank", rel: "noopener"
|
||||
- if nav_bar_profile == :user && dossier.present?
|
||||
= render partial: 'new_user/dossier_help_dropdown', locals: { dossier: dossier }
|
||||
- else
|
||||
= link_to 'Aide', FAQ_URL, class: "button primary"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue