[fix #4266] Add 'Revenir sur le site de mon administration' on commencer page

This commit is contained in:
Chaïb Martinez 2019-08-30 17:12:29 +02:00 committed by simon lehericey
parent 898973d876
commit 9f60365500

View file

@ -7,7 +7,10 @@
.header-inner-content
.flex.align-center
= link_to '', root_path_for_profile(nav_bar_profile), class: "header-logo", title: "Revenir à laccueil"
- if params[:controller] == 'users/commencer'
= link_to 'Revenir en arrière', url_for(:back), class: "button", title: "Revenir sur le site de mon administration"
- else
= link_to '', root_path_for_profile(nav_bar_profile), class: "header-logo", title: "Revenir à laccueil"
- if nav_bar_profile == :instructeur && instructeur_signed_in?
- current_url = request.path_info