MDL-86596 Profiling: add breadcrumb node to profiling detail page

Boost theme removes the last item action.
This adds an extra node so the profile run details page breadcrumb is clickable in both Classic and Boost themes.
This commit is contained in:
Yerai Rodríguez
2025-09-19 10:51:55 +02:00
parent 74ee977521
commit e6f2cfb2db
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -52,9 +52,9 @@ if ($listurl) {
}
// Add a new nav item to make $listurl clickable for the Boost theme.
if (isset($script)) {
$lastrunnav = get_string('lastrun', 'tool_profiling');
$PAGE->navbar->add($lastrunnav);
if (isset($script) || isset($runid)) {
$detailnav = get_string('detailview', 'tool_profiling');
$PAGE->navbar->add($detailnav);
}
// Header
@@ -31,6 +31,7 @@ $string['cannotfindanyrunforurl'] = 'Sorry, cannot find any profiling run for th
$string['cannotfindanyrunforrunid'] = 'Sorry, cannot find the \'{$a}\' profiling run';
$string['comment'] = 'Comment';
$string['cputime'] = 'CPU time';
$string['detailview'] = 'Summary of run';
$string['differencesbetween2runsof'] = 'Differences between 2 runs of {$a}';
$string['executiontime'] = 'Execution time';
$string['export'] = 'Export';
@@ -41,7 +42,6 @@ $string['importok'] = 'File "{$a}" imported successfully.';
$string['importprefix'] = 'Import prefix';
$string['importproblem'] = 'Some problem happened importing the file "{$a}".';
$string['lastrunof'] = 'Summary of last run of {$a}';
$string['lastrun'] = 'Summary of last run';
$string['markreferencerun'] = 'Mark as reference run/comment';
$string['memory'] = 'Memory used';
$string['pluginname'] = 'Profiling runs';