Merge pull request #1030 from NixOS/ublock

Fix 'Error loading tab: 0 error' with uBlock Origin
This commit is contained in:
Eelco Dolstra 2021-09-27 20:21:39 +02:00 committed by GitHub
commit 37af3e69eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) = @_; my ($self, $c) = @_;
$c->stash->{template} = 'job-metrics-tab.tt'; $c->stash->{template} = 'job-metrics-tab.tt';
$c->stash->{metrics} = [ $c->stash->{jobset}->buildmetrics->search( $c->stash->{metrics} = [ $c->stash->{jobset}->buildmetrics->search(

View file

@ -84,7 +84,7 @@ removed or had an evaluation error.</div>
[% END %] [% 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"> <div id="tabs-links" class="tab-pane">
<ul> <ul>