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 +++++++++++++++++++++- .../messages-component_updated_fields.html.tmpl | 3 ++ 2 files changed, 54 insertions(+), 1 deletion(-) (limited to 'extensions/ComponentWatching/template/en/default') 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 %] + + diff --git a/extensions/ComponentWatching/template/en/default/hook/global/messages-component_updated_fields.html.tmpl b/extensions/ComponentWatching/template/en/default/hook/global/messages-component_updated_fields.html.tmpl index 38c7e8c8a..f9554b072 100644 --- a/extensions/ComponentWatching/template/en/default/hook/global/messages-component_updated_fields.html.tmpl +++ b/extensions/ComponentWatching/template/en/default/hook/global/messages-component_updated_fields.html.tmpl @@ -13,3 +13,6 @@
  • Watch User deleted
  • [% END %] [% END %] +[% IF changes.watch_user_login.defined %] +
  • Watch User renamed to '[% comp.watch_user.login FILTER html %]'
  • +[% END %] -- cgit v1.2.3-24-g4f1b