From 4762c10e99a853f7790b9c651125e251ffaa3f4d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 5 Jan 2015 14:11:48 +0800 Subject: Bug 696726: automatically create "watch users" for components --- .../admin/components/edit-common-rows.html.tmpl | 52 +++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) (limited to 'extensions/ComponentWatching/template/en/default/hook/admin/components') diff --git a/extensions/ComponentWatching/template/en/default/hook/admin/components/edit-common-rows.html.tmpl b/extensions/ComponentWatching/template/en/default/hook/admin/components/edit-common-rows.html.tmpl index 4f92097ff..e6a04f092 100644 --- a/extensions/ComponentWatching/template/en/default/hook/admin/components/edit-common-rows.html.tmpl +++ b/extensions/ComponentWatching/template/en/default/hook/admin/components/edit-common-rows.html.tmpl @@ -9,12 +9,62 @@ + [% IF !comp.id || !comp.watch_user %] + + + + [% edit_size = 44 %] + [% ELSE %] + [% edit_size = 64 %] + [% END %] [% INCLUDE global/userselect.html.tmpl name => "watch_user" id => "watch_user" value => comp.watch_user.login - size => 64 + size => edit_size emptyok => 1 %] + + -- cgit v1.2.3-24-g4f1b