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