Fix page title for students
This commit is contained in:
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
- title = "#{active_action} - #{application_name}"
|
- title = "#{active_action} - #{application_name}"
|
||||||
- content_for :breadcrumbs do
|
- content_for :breadcrumbs do
|
||||||
- if current_user.try(:admin?) or current_user.try(:teacher?) && !@embed_options[:hide_navbar]
|
|
||||||
.container
|
.container
|
||||||
ul.breadcrumb
|
ul.breadcrumb
|
||||||
- if root_element.present?
|
- if root_element.present?
|
||||||
|
@ -51,6 +51,7 @@ html lang='en'
|
|||||||
= render('session')
|
= render('session')
|
||||||
div data-controller=controller_name
|
div data-controller=controller_name
|
||||||
= render('flash')
|
= render('flash')
|
||||||
|
- if current_user.try(:admin?) or current_user.try(:teacher?) && !@embed_options[:hide_navbar]
|
||||||
= yield(:breadcrumbs)
|
= yield(:breadcrumbs)
|
||||||
- if (controller_name == "exercises" && action_name == "implement")
|
- if (controller_name == "exercises" && action_name == "implement")
|
||||||
.container-fluid
|
.container-fluid
|
||||||
|
Reference in New Issue
Block a user