From: reed%reedloden.com <> Date: Wed, 27 Dec 2006 09:28:15 +0000 (+0000) Subject: Bug 364172 - "Wording on showdependencytree.cgi is bad when there are no dependencies... X-Git-Tag: bugzilla-2.23.4~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27c4d18f69e135ff72f2b93b4fb2a06853c78545;p=thirdparty%2Fbugzilla.git Bug 364172 - "Wording on showdependencytree.cgi is bad when there are no dependencies" [p=reed r=bkor a=justdave] --- diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl index e01352a57c..20940d6636 100644 --- a/template/en/default/bug/dependency-tree.html.tmpl +++ b/template/en/default/bug/dependency-tree.html.tmpl @@ -58,22 +58,29 @@ [% global.seen = {} %] [%# Display the tree of bugs that this bug depends on. %]

- [% ids.size %] - [% IF hide_resolved %] - Open [% terms.bugs %] - [% ELSE %] - [% terms.Bugs %] - [%- END %] - that [% terms.bug %] [%+ bugid %] + [% terms.Bug %] [%+ bugid %] [% IF type == 1 %] [% tree_name = "dependson_tree" %] - depends on + [% IF ids.size %] + depends on + [% ELSE %] + does not depend on any [% terms.bugs %]. + [% END %] [% ELSIF type == 2 %] [% tree_name = "blocked_tree" %] - blocks + [% IF ids.size %] + blocks + [% ELSE %] + does not block any [% terms.bugs %]. + [% END %] [% END %] + [% IF ids.size %] + [%+ (ids.size == 1) ? "one" : ids.size %] + [%+ IF hide_resolved %]open[% END %] + [%+ (ids.size == 1) ? terms.bug : terms.bugs %]: + [% END %]

- [% IF ids.size > 0 %] + [% IF ids.size %] ([% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END -%] view as [% terms.bug %] list [% IF user.groups.editbugs && ids.size > 1 %] @@ -82,9 +89,6 @@ -

- [% ELSE %] -

None

[% END %] [% END %] @@ -208,7 +212,7 @@ : ( maxdepth ? maxdepth - 1 : realdepth - 1 ) %]"> - @@ -241,8 +245,7 @@ [% END %] = realdepth %] - %]> + [% "disabled" IF realdepth < 2 || !maxdepth || maxdepth >= realdepth %]>