diff options
author | Olav Vitters <bugzilla-mozilla@vitters.nl> | 2013-01-30 17:26:00 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-01-30 17:26:00 +0100 |
commit | 1b65df64643a90d830d0ffa9d8c12a72244cfa18 (patch) | |
tree | 79cdf1247f264ce938b5da8ca5ba02c9668303ae /template/en/default/bug | |
parent | d6d056f9755dea6b2c36779347be9fd03ff7eab0 (diff) | |
download | bugzilla-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.tmpl | 26 |
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> </th> - - <td colspan="2" align="left" id="show_dependency_tree_or_graph"> - Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&hide_resolved=1">tree</a> - - [% IF Param('webdotbase') %] - / <a href="showdependencygraph.cgi?id=[% bug.bug_id %]">graph</a> - [% END %] - </td> - </tr> + + [% IF bug.dependson.size || bug.blocked.size %] + <tr> + <th> </th> + + <td colspan="2" align="left" id="show_dependency_tree_or_graph"> + Show dependency <a href="showdependencytree.cgi?id=[% bug.bug_id %]&hide_resolved=1">tree</a> + + [% IF Param('webdotbase') %] + / <a href="showdependencygraph.cgi?id=[% bug.bug_id %]">graph</a> + [% END %] + </td> + </tr> + [% END %] [% END %] |