Commit 27c4d18f authored by reed%reedloden.com's avatar reed%reedloden.com

Bug 364172 - "Wording on showdependencytree.cgi is bad when there are no…

Bug 364172 - "Wording on showdependencytree.cgi is bad when there are no dependencies" [p=reed r=bkor a=justdave]
parent fe6a4186
...@@ -58,22 +58,29 @@ ...@@ -58,22 +58,29 @@
[% global.seen = {} %] [% global.seen = {} %]
[%# Display the tree of bugs that this bug depends on. %] [%# Display the tree of bugs that this bug depends on. %]
<h3> <h3>
[% ids.size %] <a href="show_bug.cgi?id=[% bugid %]">[% terms.Bug %] [%+ bugid %]</a>
[% IF hide_resolved %]
Open [% terms.bugs %]
[% ELSE %]
[% terms.Bugs %]
[%- END %]
that <a href="show_bug.cgi?id=[% bugid %]">[% terms.bug %] [%+ bugid %]</a>
[% IF type == 1 %] [% IF type == 1 %]
[% tree_name = "dependson_tree" %] [% tree_name = "dependson_tree" %]
depends on [% IF ids.size %]
depends on
[% ELSE %]
does not depend on any [% terms.bugs %].
[% END %]
[% ELSIF type == 2 %] [% ELSIF type == 2 %]
[% tree_name = "blocked_tree" %] [% tree_name = "blocked_tree" %]
blocks [% IF ids.size %]
blocks
[% ELSE %]
does not block any [% terms.bugs %].
[% END %]
[% 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> </h3>
[% IF ids.size > 0 %] [% IF ids.size %]
([% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END -%] ([% 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> <a href="buglist.cgi?bug_id=[% ids.join(",") %]">view as [% terms.bug %] list</a>
[% IF user.groups.editbugs && ids.size > 1 %] [% IF user.groups.editbugs && ids.size > 1 %]
...@@ -82,9 +89,6 @@ ...@@ -82,9 +89,6 @@
<ul class="tree"> <ul class="tree">
[% INCLUDE display_tree tree=$tree_name %] [% INCLUDE display_tree tree=$tree_name %]
</ul> </ul>
<p>
[% ELSE %]
<p>None</p>
[% END %] [% END %]
[% END %] [% END %]
...@@ -208,7 +212,7 @@ ...@@ -208,7 +212,7 @@
: ( maxdepth ? maxdepth - 1 : realdepth - 1 ) : ( maxdepth ? maxdepth - 1 : realdepth - 1 )
%]"> %]">
<input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> <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 ) %]> [% "disabled" IF realdepth < 2 || ( maxdepth && maxdepth < 2 ) %]>
</form> </form>
</td> </td>
...@@ -241,8 +245,7 @@ ...@@ -241,8 +245,7 @@
[% END %] [% END %]
<input name="hide_resolved" type="hidden" value="[% hide_resolved %]"> <input name="hide_resolved" type="hidden" value="[% hide_resolved %]">
<input type="submit" id="increase_depth" value="&nbsp;&gt;&nbsp;" <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> </form>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment