summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorreed%reedloden.com <>2006-12-27 10:28:15 +0100
committerreed%reedloden.com <>2006-12-27 10:28:15 +0100
commit27c4d18f69e135ff72f2b93b4fb2a06853c78545 (patch)
tree9493d4b7653215881a2ae176a0eb0baf52f1431b /template/en/default
parentfe6a41866c28c367385ab6a16c75198a8fbea4cc (diff)
downloadbugzilla-27c4d18f69e135ff72f2b93b4fb2a06853c78545.tar.gz
bugzilla-27c4d18f69e135ff72f2b93b4fb2a06853c78545.tar.xz
Bug 364172 - "Wording on showdependencytree.cgi is bad when there are no dependencies" [p=reed r=bkor a=justdave]
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/dependency-tree.html.tmpl35
1 files changed, 19 insertions, 16 deletions
diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl
index e01352a57..20940d663 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. %]
<h3>
- [% ids.size %]
- [% IF hide_resolved %]
- Open [% terms.bugs %]
- [% ELSE %]
- [% terms.Bugs %]
- [%- END %]
- that <a href="show_bug.cgi?id=[% bugid %]">[% terms.bug %] [%+ bugid %]</a>
+ <a href="show_bug.cgi?id=[% bugid %]">[% terms.Bug %] [%+ bugid %]</a>
[% 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 %]
</h3>
- [% IF ids.size > 0 %]
+ [% IF ids.size %]
([% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END -%]
<a href="buglist.cgi?bug_id=[% ids.join(",") %]">view as [% terms.bug %] list</a>
[% IF user.groups.editbugs && ids.size > 1 %]
@@ -82,9 +89,6 @@
<ul class="tree">
[% INCLUDE display_tree tree=$tree_name %]
</ul>
- <p>
- [% ELSE %]
- <p>None</p>
[% END %]
[% END %]
@@ -208,7 +212,7 @@
: ( maxdepth ? maxdepth - 1 : realdepth - 1 )
%]">
<input name="hide_resolved" type="hidden" value="[% hide_resolved %]">
- <input type="submit" id="decrase_depth" value="&nbsp;&lt;&nbsp;"
+ <input type="submit" id="decrease_depth" value="&nbsp;&lt;&nbsp;"
[% "disabled" IF realdepth < 2 || ( maxdepth && maxdepth < 2 ) %]>
</form>
</td>
@@ -241,8 +245,7 @@
[% END %]
<input name="hide_resolved" type="hidden" value="[% hide_resolved %]">
<input type="submit" id="increase_depth" value="&nbsp;&gt;&nbsp;"
- [% "disabled" IF realdepth < 2 || !maxdepth || maxdepth >= realdepth %]
- %]>
+ [% "disabled" IF realdepth < 2 || !maxdepth || maxdepth >= realdepth %]>
</form>
</td>