summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorOlav Vitters <bugzilla-mozilla@vitters.nl>2013-01-30 17:26:00 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-01-30 17:26:00 +0100
commit1b65df64643a90d830d0ffa9d8c12a72244cfa18 (patch)
tree79cdf1247f264ce938b5da8ca5ba02c9668303ae /template/en/default/bug
parentd6d056f9755dea6b2c36779347be9fd03ff7eab0 (diff)
downloadbugzilla-1b65df64643a90d830d0ffa9d8c12a72244cfa18.tar.gz
bugzilla-1b65df64643a90d830d0ffa9d8c12a72244cfa18.tar.xz
Bug 824636: Only show "Show dependency tree / graph" when there are bugs in the dependency chain
r/a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/edit.html.tmpl26
1 files changed, 14 insertions, 12 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 6f33b7484..3ca5ab4a5 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -590,18 +590,20 @@
[% INCLUDE dependencies
field = bug_fields.blocked deps = bug.blocks_obj %]
</tr>
-
- <tr>
- <th>&nbsp;</th>
-
- <td colspan="2" align="left" id="show_dependency_tree_or_graph">
- Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&amp;hide_resolved=1">tree</a>
-
- [% IF Param('webdotbase') %]
- /&nbsp;<a href="showdependencygraph.cgi?id=[% bug.bug_id %]">graph</a>
- [% END %]
- </td>
- </tr>
+
+ [% IF bug.dependson.size || bug.blocked.size %]
+ <tr>
+ <th>&nbsp;</th>
+
+ <td colspan="2" align="left" id="show_dependency_tree_or_graph">
+ Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&amp;hide_resolved=1">tree</a>
+
+ [% IF Param('webdotbase') %]
+ /&nbsp;<a href="showdependencygraph.cgi?id=[% bug.bug_id %]">graph</a>
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
[% END %]