summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-03-19 10:14:29 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-03-19 10:14:29 +0000
commite50190a82a5b6a066a3fadfdebf9df6e268719ad (patch)
treec49f3341b96612314a1f0e238102cce24f1aaaa7 /app/views
parent23874fa913c62f7da23f2d1fab6e5e1a445ae290 (diff)
downloadredmine-e50190a82a5b6a066a3fadfdebf9df6e268719ad.tar.gz
redmine-e50190a82a5b6a066a3fadfdebf9df6e268719ad.zip
Automatically add the user to the watchers list after contributing to an issue (#4347). User can enable/disable this feature from My Account.
Patch by Takenori TAKAKI and Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21469 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/my/account.html.erb5
-rw-r--r--app/views/users/_form.html.erb5
2 files changed, 10 insertions, 0 deletions
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index fc27dc61c..4240832b7 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -55,6 +55,11 @@
<%= render :partial => 'users/mail_notifications' %>
</fieldset>
+<fieldset class="box">
+ <legend><%=l(:label_auto_watch_on)%></legend>
+ <%= render :partial => 'users/auto_watch_on' %>
+</fieldset>
+
<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index 5505766b4..6d6058c49 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -63,6 +63,11 @@
<%= render :partial => 'users/mail_notifications' %>
</fieldset>
+<fieldset class="box">
+ <legend><%=l(:label_auto_watch_on)%></legend>
+ <%= render :partial => 'users/auto_watch_on' %>
+</fieldset>
+
<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>