From 0be9c486f685c2c0061541dec52a8a68e505a04b Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 19 Nov 2012 18:05:54 +0100 Subject: Bug 812220: bug_link() is called twice per bug in bug/process/results.html.tmpl r=glob a=LpSolit --- template/en/default/bug/process/results.html.tmpl | 9 ++++----- template/en/default/filterexceptions.pl | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/process/results.html.tmpl b/template/en/default/bug/process/results.html.tmpl index cdebfed5e..1d2f99a42 100644 --- a/template/en/default/bug/process/results.html.tmpl +++ b/template/en/default/bug/process/results.html.tmpl @@ -20,23 +20,22 @@ [% DEFAULT type="bug" %] -[% Link = BLOCK %][% "$terms.Bug $id" FILTER bug_link(id) %][% END %] -[% link = BLOCK %][% "$terms.bug $id" FILTER bug_link(id) %][% END %] +[% link = BLOCK %][% terms.bug %] [%+ id FILTER bug_link(id) FILTER none %][% END %] [% title = { 'bug' => "Changes submitted for $link" , 'dupe' => "Duplicate notation added to $link" , 'dep' => "Checking for dependency changes on $link" , - 'created' => "$Link has been added to the database" , - 'move' => "$Link has been moved to another database" , + 'created' => "$link has been added to the database" , + 'move' => "$link has been moved to another database" , } %] [% Hook.process('title') %]
-
[% title.$type %]
+
[% title.$type.ucfirst %]
[% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %] [%# Links to more information about the changed bug. %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 44ae2b5da..e12fcb189 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -267,9 +267,7 @@ ], 'bug/process/results.html.tmpl' => [ - 'title.$type', - '"$terms.Bug $id" FILTER bug_link(id)', - '"$terms.bug $id" FILTER bug_link(id)', + 'title.$type.ucfirst', ], 'bug/create/create.html.tmpl' => [ -- cgit v1.2.3-24-g4f1b