Feature #7652
closedAbility to add watchers to Wiki pages
Added by Fernando Hartmann almost 14 years ago. Updated over 3 years ago.
0%
Description
Today I can only set myself as a watcher of a page.
Would be very useful to if I can add/remove another users as a watcher, like we can do in Issues today.
Files
add-and-remove-watchers.png (117 KB) add-and-remove-watchers.png | Yuichi HARADA, 2021-04-06 02:47 | ||
roles-and-permissions.png (124 KB) roles-and-permissions.png | Yuichi HARADA, 2021-04-06 02:47 | ||
7652.patch (9.01 KB) 7652.patch | Yuichi HARADA, 2021-04-06 02:49 | ||
0001-Remove-trailing-whitespaces-in-test-fixtures-watcher.patch (796 Bytes) 0001-Remove-trailing-whitespaces-in-test-fixtures-watcher.patch | Go MAEDA, 2021-05-27 09:55 | ||
0002-Ability-of-assign-watchers-to-Wiki-pages.patch (9.46 KB) 0002-Ability-of-assign-watchers-to-Wiki-pages.patch | Go MAEDA, 2021-05-27 09:55 |
Related issues
Updated by Zee Prime about 13 years ago
Here's how to do it for wiki pages -- I haven't had the need to do it for forums...
Index: app/views/wiki/show.rhtml
===================================================================
--- app/views/wiki/show.rhtml
+++ app/views/wiki/show.rhtml
@@ -56,6 +56,10 @@
<% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>
+
+ <div id="watchers">
+ <%= render :partial => 'watchers/watchers', :locals => {:watched => @page} %>
+ </div>
<% end %>
<% html_title @page.pretty_title %>
Index: lib/redmine.rb
===================================================================
--- lib/redmine.rb
+++ lib/redmine.rb
@@ -117,6 +117,7 @@
map.permission :edit_wiki_pages, :wiki => [:edit, :update, :preview, :add_attachment]
map.permission :delete_wiki_pages_attachments, {}
map.permission :protect_wiki_pages, {:wiki => :protect}, :require => :member
+ map.permission :add_issue_watchers, {:watchers => :new}
end
map.project_module :repository do |map|
It uses the existing :add_issue_watchers permission (that's hardcoded elsewhere in the code).
-Z
Updated by kangbo kimk over 11 years ago
To Zee Prime,
Thanks for your modified code.
But it only applied to current wiki page.
Can you add option check box such as "ㅁ Apply to all sub wiki pages?"
Updated by Yuichi HARADA over 3 years ago
- File add-and-remove-watchers.png add-and-remove-watchers.png added
- File roles-and-permissions.png roles-and-permissions.png added
- File 7652.patch 7652.patch added
You could add and remove watchers with wiki pages (could be done on the sidebar like issues).
I have attached a patch.
Roles > Permissions report
Updated by Go MAEDA over 3 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA over 3 years ago
- Target version changed from Candidate for next major release to 5.0.0
Setting the target version to 5.0.0.
Updated by Go MAEDA over 3 years ago
- File 0001-Remove-trailing-whitespaces-in-test-fixtures-watcher.patch 0001-Remove-trailing-whitespaces-in-test-fixtures-watcher.patch added
- File 0002-Ability-of-assign-watchers-to-Wiki-pages.patch 0002-Ability-of-assign-watchers-to-Wiki-pages.patch added
Split the patch into two parts.
Updated by Go MAEDA over 3 years ago
- Subject changed from Ability of assign watchers to Wiki pages to Ability to add watchers to Wiki pages
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch. Thank you for improving Redmine.