Changes between Version 4 and Version 5 of HideChangesPlugin
- Timestamp:
- Nov 19, 2015, 9:49:10 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HideChangesPlugin
v4 v5 21 21 == Download 22 22 23 Download the zipped source from [ download:hidechangesplugin here].23 Download the zipped source from [export:hidechangesplugin here]. 24 24 25 25 == Source 26 26 27 You can check out HideChangesPlugin from [ http://trac-hacks.org/svn/hidechangesplugin here] using Subversion, or [source:hidechangesplugin browse the source] with Trac.27 You can check out HideChangesPlugin from [/svn/hidechangesplugin here] using Subversion, or [source:hidechangesplugin browse the source] with Trac. 28 28 29 == Installation and Configuration29 == Installation 30 30 31 31 1. Install the plugin after downloading and unzipping: 32 33 34 35 36 32 {{{#!sh 33 cd hidechangesplugin/trunk 34 sudo python setup.py bdist_egg 35 sudo cp dist/TracHideChanges*.egg /your/trac/location/plugins/ 36 }}} 37 37 38 38 See [http://trac.edgewall.org/wiki/TracPlugins TracPlugins] for more installation details and options. You'll likely need to restart Trac's web server after installation. 39 39 40 40 2. Enable the plugin by adding the following to your `trac.ini` file: 41 42 43 44 41 {{{#!ini 42 [components] 43 hidechanges.* = enabled 44 }}} 45 45 46 46 You can alternatively use the Trac Web Admin GUI to enable any or all rules. … … 48 48 3. Create rules in the {{{[hidechanges]}}} section of {{{trac.ini}}} for which changes to hide. See [wiki:HideChangesPlugin#Examples examples below] for details and ideas. 49 49 50 == Example50 == Configuration 51 51 52 52 You define rules using the {{{rule.<name>}}} option in the {{{[hidechanges]}}} section of {{{trac.ini}}} as freeform !JavaScript/jQuery 1.8.7 code. Each rule {{{<name>}}} must be unique. Each rule (code) must evaluate to either {{{true}}} or {{{false}}}. If {{{true}}}, the change will be hidden. A {{{changediv}}} jQuery object is available to use within each rule. An example can be helpful to explain this more concretely.