Changes between Version 26 and Version 27 of PrivateCommentPlugin
- Timestamp:
- Apr 21, 2015, 9:46:56 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PrivateCommentPlugin
v26 v27 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Private Comments =3 = Private Comments 4 4 5 == Description ==5 == Description 6 6 7 This trac plugin lets you create comments which are only visible for users with a special permission. 8 To create such a comment you are able to check a new checkbox on the ticket page. If you leave the checkbox unchecked everybody can see the comment. 7 This plugin lets you create comments which are only visible for users with a special permission. 8 To create such a comment you need to check a checkbox with label "this comment is private" on the ticket page. If you leave the checkbox unchecked, then everybody can see the comment. 9 The label is configurable. 9 10 10 11 === Configuration Help: === 11 === Configuration Help 12 12 13 13 After installation of this plugin you will be prompted to update your trac environment. 14 14 15 Then you are able to set the name of the permission (default is `PRIVATE_COMMENT_PERMISSION`) in the admin-interface or in the trac.ini15 Then you are able to set the name of the permission (default is `PRIVATE_COMMENT_PERMISSION`) in the admin-interface or in the `trac.ini` file. 16 16 17 17 You have to give this permission to all groups and users who should see the private comments. 18 18 19 If you want to change the color of the "this comment is private"- message you can do this by adding a css-class named "private_comment_marker" to your css.19 If you want to change the color of the "this comment is private"- message you can do this by adding a CSS-class named "private_comment_marker" to your CSS stylesheets. 20 20 21 21 The label of the checkbox is modifiable via the css-class "private_comment_checkbox". 22 22 23 == Bugs/Feature Requests ==23 == Bugs/Feature Requests 24 24 25 === Old Comments ===25 === Old Comments 26 26 27 Old comments can't be set private because they miss an entry in the private_comment table.27 Old comments can't be set private, because they do not have an entry in the private_comment table. I created a script which creates the necessary entries in the private_comment table. Just place the script cpce.py into your trac context and run it. 28 28 29 I created a script which creates the necessary entries 30 in the private_comment table. 31 Just place the script cpce.py into your trac context and run it 32 33 === Email notification === 29 === Email notification 34 30 35 31 Email notifcations are not filtered and, as far as I know, can't be filtered via a plugin. 36 To filter the notifications I made some minor core changes. If a comment is private the text 37 'the ticket is processed internally' will be set as comment text. 32 To filter the notifications I made some minor core changes. If a comment is private the text 'the ticket is processed internally' will be set as comment text. 38 33 39 34 You can install the filtering by using the notification_patch.patch file from svn. 40 35 41 === Other Bugs ===36 === Other Bugs 42 37 43 38 Existing bugs and feature requests for PrivateCommentPlugin are … … 47 42 [http://trac-hacks.org/newticket?component=PrivateCommentPlugin&owner=mhenke new ticket]. 48 43 49 == Download == 44 [[TicketQuery(component=PrivateCommentPlugin&group=type,format=progress)]] 45 46 == Download 50 47 51 48 Download the zipped source from [download:privatecommentplugin here]. 52 49 53 == Source ==50 == Source 54 51 55 52 You can check out PrivateCommentPlugin from [http://trac-hacks.org/svn/privatecommentplugin here] using Subversion, or [source:privatecommentplugin browse the source] with Trac. 56 53 57 == Example ==54 == Example 58 55 59 56 How to add a private comment: … … 61 58 [[Image(add_a_comment.png)]] 62 59 63 64 60 How a user with the permission sees the comment: 65 61 66 62 [[Image(view_comment_w_permission.png)]] 67 68 63 69 64 How a user without the permission sees the comment: … … 71 66 [[Image(view_comment_wo_permission.png)]] 72 67 73 74 == Recent Changes == 68 == Recent Changes 75 69 76 70 [[ChangeLog(privatecommentplugin, 3)]] 77 71 78 == Author/Contributors ==72 == Author/Contributors 79 73 80 74 '''Author:''' [wiki:mhenke] [[BR]] 81 '''Maintainer:''' [ wiki:mhenke] [wiki:rjollos][[BR]]75 '''Maintainer:''' [[Maintainer]] [wiki:rjollos] [[BR]] 82 76 '''Contributors:''' [[BR]]