Skip to content

Commit

Permalink
feat: Add description to view page #905
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl committed Oct 23, 2024
1 parent d96331d commit 0c2f349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/visualiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<div class="clearfix"></div>';

// 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');

Expand Down

0 comments on commit 0c2f349

Please sign in to comment.