From: Olav Vitters Date: Wed, 30 Jan 2013 16:26:00 +0000 (+0100) Subject: Bug 824636: Only show "Show dependency tree / graph" when there are bugs in the depen... X-Git-Tag: bugzilla-4.5.1~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b65df64643a90d830d0ffa9d8c12a72244cfa18;p=thirdparty%2Fbugzilla.git Bug 824636: Only show "Show dependency tree / graph" when there are bugs in the dependency chain r/a=LpSolit --- diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 6f33b74844..3ca5ab4a50 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 %] - - -   - - - Show dependency tree - - [% IF Param('webdotbase') %] - / graph - [% END %] - - + + [% IF bug.dependson.size || bug.blocked.size %] + +   + + + Show dependency tree + + [% IF Param('webdotbase') %] + / graph + [% END %] + + + [% END %] [% END %]