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).
This commit is contained in:
Damyon Wiese 2016-11-29 10:07:16 +08:00
parent 8392a86068
commit 4d41cec8db
2 changed files with 7 additions and 1 deletions

View File

@ -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();

View File

@ -183,6 +183,9 @@ select {
.breadcrumb-button {
float: right;
margin-top: 4px;
&.nonavbar {
margin-top: -3rem;
}
}
.breadcrumb-button .singlebutton {