Commit 4d41cec8 authored by Damyon Wiese's avatar Damyon Wiese
Browse files

MDL-57124 boost: Show pageheaderbutton when no navbar

Even if there is no navbar - if there is a pageheaderbutton we need to
show it (E.g. Customise this page on dashboard).
parent 8392a860
......@@ -81,11 +81,14 @@ class core_renderer extends \core_renderer {
$html .= html_writer::start_div('card-block');
$html .= html_writer::div($this->context_header_settings_menu(), 'pull-xs-right context-header-settings-menu');
$html .= $this->context_header();
$pageheadingbutton = $this->page_heading_button();
if (empty($PAGE->layout_options['nonavbar'])) {
$html .= html_writer::start_div('clearfix', array('id' => 'page-navbar'));
$html .= html_writer::tag('div', $this->navbar(), array('class' => 'breadcrumb-nav'));
$html .= html_writer::div($this->page_heading_button(), 'breadcrumb-button');
$html .= html_writer::div($pageheadingbutton, 'breadcrumb-button');
$html .= html_writer::end_div();
} else if ($pageheadingbutton) {
$html .= html_writer::div($pageheadingbutton, 'breadcrumb-button nonavbar');
}
$html .= html_writer::tag('div', $this->course_header(), array('id' => 'course-header'));
$html .= html_writer::end_div();
......
......@@ -183,6 +183,9 @@ select {
.breadcrumb-button {
float: right;
margin-top: 4px;
&.nonavbar {
margin-top: -3rem;
}
}
.breadcrumb-button .singlebutton {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment