summaryrefslogtreecommitdiffstats
path: root/template/en/default/list
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-10-26 01:22:53 +0100
committermkanat%bugzilla.org <>2009-10-26 01:22:53 +0100
commit155bc6f800ebb5da30ff892105411da1163ae703 (patch)
tree320414cd9ba6de4bd566fb249913e1fd9f03b415 /template/en/default/list
parent83b43fe4c0baa0cd802d93104e169f597fd170b8 (diff)
downloadbugzilla-155bc6f800ebb5da30ff892105411da1163ae703.tar.gz
bugzilla-155bc6f800ebb5da30ff892105411da1163ae703.tar.xz
Bug 524244: Make the HTML buglist not display a header if there are no bugs found.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template/en/default/list')
-rw-r--r--template/en/default/list/table.html.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index 2305d2fa5..6ca90b921 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -23,6 +23,10 @@
[%# Initialization #%]
[%############################################################################%]
+[%# Don't display the table or do any processing if there are no bugs
+ # to display %]
+[% RETURN IF !bugs.size %]
+
[%# Columns whose titles or values should be abbreviated to make the list
# more compact. For columns whose titles should be abbreviated,
# the shortened title is included. For columns whose values should be