From 535a1fd09e4b150e31165e2e79af42c2e5f2bda5 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 18 Jul 2018 22:44:16 -0400 Subject: Bug 1472954 - Implement one-click component watching on bug modal and component description pages --- template/en/default/reports/components.html.tmpl | 111 ++++++++++------------- 1 file changed, 46 insertions(+), 65 deletions(-) (limited to 'template/en/default/reports/components.html.tmpl') diff --git a/template/en/default/reports/components.html.tmpl b/template/en/default/reports/components.html.tmpl index b2a21ccc1..f8b0f3f80 100644 --- a/template/en/default/reports/components.html.tmpl +++ b/template/en/default/reports/components.html.tmpl @@ -17,6 +17,7 @@ # # Contributor(s): Bradley Baetz # Max Kanat-Alexander + # Kohei Yoshino #%] [%# INTERFACE: @@ -29,53 +30,36 @@ Components for [% product.name FILTER html %] [% END %] -[% PROCESS global/header.html.tmpl - style_urls = [ "skins/standard/reports.css" ] - title = title +[% DEFAULT + style_urls = [ "skins/standard/describecomponents.css" ] + javascript_urls = [] + title = title + show_default_people = 1 %] -[% IF Param("useqacontact") %] - [% numcols = 3 %] -[% ELSE %] - [% numcols = 2 %] -[% END %] - -

[% mark FILTER html %]

- - - - - - -
- Select a component to see open [% terms.bugs %] in that component: - - [% product.name FILTER html %] -
- [% product.description FILTER html_light %] -
-
+[% Hook.process('start') %] -Components +[% PROCESS global/header.html.tmpl + style_urls = style_urls + javascript_urls = javascript_urls + title = title +%] - - - - - - [% IF Param("useqacontact") %] - +
+
+

[% product.name FILTER html %]

+

[% product.description FILTER html_light %]

+ [% Hook.process('product_header') %] +
+
+

Select a component to see open [% terms.bugs %] in that component:

+
+
+ [% FOREACH comp = product.components %] + [% INCLUDE describe_comp %] [% END %] -
- - - - [% FOREACH comp = product.components %] - [% INCLUDE describe_comp %] - [% END %] - -
 Default AssigneeDefault QA Contact
+ + [% PROCESS global/footer.html.tmpl %] @@ -84,27 +68,24 @@ [%############################################################################%] [% BLOCK describe_comp %] - - - - [% comp.name FILTER html %] - - - [% INCLUDE global/user.html.tmpl who = comp.default_assignee %] - - [% IF Param("useqacontact") %] - - [% INCLUDE global/user.html.tmpl who = comp.default_qa_contact %] - - [% END %] - - - - [% comp.description FILTER html_light %] - - +
+
+

[% comp.name FILTER html %]

+
+
+

[% comp.description FILTER html_light %]

+ [% IF show_default_people %] +
    +
  • Assignee: [% INCLUDE global/user.html.tmpl who = comp.default_assignee %]
  • + [% IF Param("useqacontact") %] +
  • QA: [% INCLUDE global/user.html.tmpl who = comp.default_qa_contact %]
  • + [% END %] +
+ [% END %] +
+ +
[% END %] -- cgit v1.2.3-24-g4f1b