Skip to content

Commit

Permalink
MDL-76127 Profiling: Make the breadcrumb of the profiling URL clickable
Browse files Browse the repository at this point in the history
Boost has the behavior to remove the last item action.
To avoid that, we need to add an action item.
  • Loading branch information
meirzamoodle committed Nov 21, 2022
1 parent 2da8a31 commit 4419dee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/tool/profiling/index.php
Expand Up @@ -51,6 +51,12 @@
$PAGE->navbar->add($listurl, $listurlnav);
}

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

// Header
echo $OUTPUT->header();

Expand Down
1 change: 1 addition & 0 deletions admin/tool/profiling/lang/en/tool_profiling.php
Expand Up @@ -41,6 +41,7 @@
$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';
Expand Down

0 comments on commit 4419dee

Please sign in to comment.