mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
8392a86068
commit
4d41cec8db
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user