MDL-63881 tool_dataprivacy: 'Contact the privacy officer' profile link.

This commit is contained in:
Luca Bösch
2018-12-09 14:15:56 +01:00
parent 4c5b60a0f9
commit 3b2f691f62
2 changed files with 8 additions and 14 deletions
-10
View File
@@ -15,16 +15,6 @@
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 {
min-width: 150px;
}
+8 -4
View File
@@ -100,11 +100,15 @@ class renderer extends \plugin_renderer_base {
$content = $node->content;
$classes = $node->classes;
if (!empty($content)) {
// There is some content to display below this make this a header.
$return = \html_writer::tag('dt', $header);
$return .= \html_writer::tag('dd', $content);
if ($header) {
// There is some content to display below this make this a header.
$return = \html_writer::tag('dt', $header);
$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) {
$return = \html_writer::tag('li', $return, array('class' => 'contentnode ' . $classes));
} else {