Skip to content

Commit

Permalink
Make URLs clickable in "command" logs type output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Oct 26, 2023
1 parent b9899fd commit 9a4bb9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devmaster/modules/devshop/devshop_projects/inc/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,13 @@ function devshop_task_get_messages($task_node) {
}

if (!empty($command)) {

// Make URLs clickable:
$filter = new stdClass();
$filter->settings = [
'filter_url_length' => 1000,
];
$command = _filter_url($command, $filter);
$header = "<div class='panel-heading'><i class='fa fa-$icon pull-left'></i> $command</div>";
}
else {
Expand Down

0 comments on commit 9a4bb9b

Please sign in to comment.