From f94befed1c326a403550182b3fb56e6731e5d276 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 7 Aug 2012 13:24:15 +0800 Subject: Bug 778971: show components watched via watch-users on the "component watching" preferences tab --- .../account/prefs/component_watch.html.tmpl | 142 +++++++++++++++------ 1 file changed, 101 insertions(+), 41 deletions(-) (limited to 'extensions/ComponentWatching/template/en') diff --git a/extensions/ComponentWatching/template/en/default/account/prefs/component_watch.html.tmpl b/extensions/ComponentWatching/template/en/default/account/prefs/component_watch.html.tmpl index 0eed6b3b3..05c1453db 100644 --- a/extensions/ComponentWatching/template/en/default/account/prefs/component_watch.html.tmpl +++ b/extensions/ComponentWatching/template/en/default/account/prefs/component_watch.html.tmpl @@ -9,6 +9,7 @@ [%# initialise product to component mapping #%] [% SET selectable_products = user.get_selectable_products %] +[% SET dont_show_button = 1 %]

-Select the components you want to watch. To watch all components in a product, -watch "__Any__". + Select the components you want to watch. + To watch all components in a product, watch "__Any__".
+ Use Email Preferences to filter which + notification emails you receive.

@@ -116,57 +134,99 @@ watch "__Any__".
-

-Use Email Preferences to filter which -notification emails you receive. -

-

-You are currently watching: + You are currently watching:

[% IF watches.size %] - - - - - - -[% FOREACH watch IN watches %] +
 ProductComponent
- [% IF (watch.component) %] - - - - [% ELSE %] - - - - [% END %] + + + -[% END %] -
[% watch.component.product.name FILTER html %] - - [% watch.component.name FILTER html %] - - [% watch.product.name FILTER html %] - - __Any__ - -  Product Component
+ [% FOREACH watch IN watches %] + + [% IF (watch.component) %] + + + + + + +   + + [% watch.component.name FILTER html %] + + + [% ELSE %] + + + + + + +   + + __Any__ + + + [% END %] + + [% END %] + -

-Select the items you want to stop watching. -

+ [% ELSE %] -

-You are not watching any components. -

+

+ You are not watching any components directly. +

+ +[% END %] + +[% IF user_watches.size %] + +
+

+ [% watches.size ? "In addition," : "However," %] + you are watching the following components by watching users: +

+ + + + + + + + [% FOREACH watch IN user_watches %] + + + + + + [% END %] +
User Product Component
[% watch.user.login FILTER html %] [% watch.component.product.name FILTER html %]  + + [% watch.component.name FILTER html %] + +
+ +

+ Use Email Preferences + to manage this list. +

[% END %] -- cgit v1.2.3-24-g4f1b