From b03f51a06ad77820c3b1b951907f94ef9d95278a Mon Sep 17 00:00:00 2001 From: Benjamin Walker Date: Wed, 23 Oct 2024 12:15:45 +1000 Subject: [PATCH] feat: Add description to view page #905 --- classes/visualiser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/visualiser.php b/classes/visualiser.php index 5e457fc5..41546acd 100644 --- a/classes/visualiser.php +++ b/classes/visualiser.php @@ -276,6 +276,9 @@ public static function display_dataflows_view_page(int $dataflowid, steps_table echo \html_writer::end_div(); // Closing tag for the .tool_dataflow-top-bar div. echo '
'; + // Show description. Limit width for readability. + echo \html_writer::div(format_text($dataflow->description), '', ['style' => 'max-width: 600px']); + // Generate the image based on the DOT script. $contents = self::generate($dataflow->get_dotscript(), 'svg');