[%# bug lists, depencancies, blockers %]
[% BLOCK bug_list %]
[% IF NOT edit %]
- [% FOREACH b IN values %]
- [% INCLUDE bug/link.html.tmpl bug=b link_text=b.id use_alias=1 %]
- [% ", " UNLESS loop.last %]
+ [% FOREACH type IN bug_fields.bug_type.legal_values.pluck('name') %]
+ [%
+ bugs = [];
+ FOREACH b IN values; bugs.push(b) IF b.bug_type == type; END;
+ NEXT UNLESS bugs.size > 0;
+ %]
+ <div class="bug-list">
+ <span class="bug-type-label iconic" title="[% type FILTER html %]"
+ aria-label="[% type FILTER html %]" data-type="[% type FILTER html %]">
+ <span class="icon" aria-hidden="true"></span>
+ </span>
+ [% FOREACH b IN bugs %]
+ [% INCLUDE bug/link.html.tmpl bug=b link_text=b.id use_alias=1 %]
+ [% ", " UNLESS loop.last %]
+ [% END %]
+ </div>
[% END %]
[% ELSE %]
<input type="text" id="[% name FILTER html %]" name="[% name FILTER html %]"
text-decoration: underline;
}
+.field .value .bug-list {
+ margin: -2px 0 6px;
+ padding-left: 20px;
+ line-height: 1.5;
+}
+
+.field .value .bug-list .bug-type-label {
+ float: left;
+ margin-left: -20px;
+}
+
+.field .value .bug-list .bug-type-label .icon {
+ font-size: 16px;
+}
+
+#field-value-dependencytree {
+ display: block;
+ margin: -2px 0 8px;
+}
+
/* actions */
#top-actions {