Fix 'Error loading tab: 0 error' with uBlock Origin

/metrics-tab matches a rule in one of uBlock Origin's default
blocklists, so let's name it something else.
This commit is contained in:
Eelco Dolstra 2021-09-27 17:42:56 +02:00
parent 9bb3e30a46
commit 66375fd2d9
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ sub overview : Chained('job') PathPart('') Args(0) {
}
sub metrics_tab : Chained('job') PathPart('metrics-tab') Args(0) {
sub metrics_tab : Chained('job') PathPart('metric-tab') Args(0) {
my ($self, $c) = @_;
$c->stash->{template} = 'job-metrics-tab.tt';
$c->stash->{metrics} = [ $c->stash->{jobset}->buildmetrics->search(

View file

@ -84,7 +84,7 @@ removed or had an evaluation error.</div>
[% END %]
[% INCLUDE makeLazyTab tabName="tabs-charts" uri=c.uri_for('/job' project.name jobset.name job 'metrics-tab') %]
[% INCLUDE makeLazyTab tabName="tabs-charts" uri=c.uri_for('/job' project.name jobset.name job 'metric-tab') %]
<div id="tabs-links" class="tab-pane">
<ul>