Changes between Version 2 and Version 3 of HideChangesPlugin


Ignore:
Timestamp:
Jan 4, 2011, 8:11:01 PM (4 years ago)
Author:
robguttman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HideChangesPlugin

    v2 v3  
    6868}}}
    6969
    70 The above rule is named {{{commentless}}}.  It checks the change div's comment div for any children.  If no children are found (length = {{{0}}}), that means the change is commentless.  Since the rule needs to evaluate to {{{true}}} to hide a change, we negate the result with a {{{!}}}.  In this example, we also changed the default button names to make it clear what type of comments are hidden.  The button's name changes as the changes are shown or hidden.
     70This {{{changeset}}} rule checks for an href node with the {{changeset}}} class - this is the wiki syntax for changesets introduced in Trac 0.12 (I believe).  If found, hide the change!
     71
     72You can combine both/all rules in the {{{[hidechanges]}}} section of the {{{trac.ini}}} file as long as the names are unique.  You should take care in naming the buttons accordingly as one set of buttons apply to all hidden changes.
     73
    7174
    7275== Recent Changes ==