mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-63881-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
64afd81e0b
2 changed files with 8 additions and 14 deletions
|
@ -15,16 +15,6 @@
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd a.contactdpo {
|
|
||||||
/* Reverting dd's left margin */
|
|
||||||
margin-left: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card dd a.contactdpo {
|
|
||||||
/* Reverting dd's left margin */
|
|
||||||
margin-left: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-region="data-requests-table"] .moodle-actionmenu {
|
[data-region="data-requests-table"] .moodle-actionmenu {
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,11 +100,15 @@ class renderer extends \plugin_renderer_base {
|
||||||
$content = $node->content;
|
$content = $node->content;
|
||||||
$classes = $node->classes;
|
$classes = $node->classes;
|
||||||
if (!empty($content)) {
|
if (!empty($content)) {
|
||||||
|
if ($header) {
|
||||||
// There is some content to display below this make this a header.
|
// There is some content to display below this make this a header.
|
||||||
$return = \html_writer::tag('dt', $header);
|
$return = \html_writer::tag('dt', $header);
|
||||||
$return .= \html_writer::tag('dd', $content);
|
$return .= \html_writer::tag('dd', $content);
|
||||||
|
|
||||||
$return = \html_writer::tag('dl', $return);
|
$return = \html_writer::tag('dl', $return);
|
||||||
|
} else {
|
||||||
|
$return = \html_writer::span($content);
|
||||||
|
}
|
||||||
if ($classes) {
|
if ($classes) {
|
||||||
$return = \html_writer::tag('li', $return, array('class' => 'contentnode ' . $classes));
|
$return = \html_writer::tag('li', $return, array('class' => 'contentnode ' . $classes));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue