From 3b2f691f62b5c48bb934cb3140f70b06183caae3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luca=20B=C3=B6sch?= Date: Sun, 9 Dec 2018 14:15:56 +0100 Subject: [PATCH] MDL-63881 tool_dataprivacy: 'Contact the privacy officer' profile link. --- admin/tool/dataprivacy/styles.css | 10 ---------- user/classes/output/myprofile/renderer.php | 12 ++++++++---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/admin/tool/dataprivacy/styles.css b/admin/tool/dataprivacy/styles.css index 7a7015a49a3..e510ae0e1b7 100644 --- a/admin/tool/dataprivacy/styles.css +++ b/admin/tool/dataprivacy/styles.css @@ -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; } diff --git a/user/classes/output/myprofile/renderer.php b/user/classes/output/myprofile/renderer.php index c46349605a3..43a83637fe9 100644 --- a/user/classes/output/myprofile/renderer.php +++ b/user/classes/output/myprofile/renderer.php @@ -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 { -- 2.43.0