Changes between Version 26 and Version 27 of ContextChromePlugin


Ignore:
Timestamp:
Aug 6, 2015, 12:20:54 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • ContextChromePlugin

    v26 v27  
    55== Description
    66
    7  1. Wiki Link Decoration by age of wiki page ... add "new" css-class to link to wiki page that is young. You can specify ages at `trac.ini`.
    8  1. Decayed Wiki ... Indicate how old the wiki page is. You can specify colors by age in seconds at `trac.ini`. (so far this feature requires python 2.7 or leter.)
    9  1. Ticket Link Decoration by field value ... Set css-class to link to tickets by field value. You can specify field names at `trac.ini`.
    10   1. you can decorate over intertrac links, with XmlRpcPlugin and [browser:/contextchromeplugin/0.12/contextchrome/cors.py corsEnabler] included.
    11  1. Ticket color by Type ... Set css-class by type or specified field value on ticket. You can design for each type of ticket with trac:wiki:CookBook/SiteStyleCss feature.
    12  1. Wiki color by tags ... Set css-class by tags added by TagsPlugin.
    13  1. marked for validation ... set css-class to field specified by validator (TracTicketValidatorPlugin or TracTicketConditionalValidatePlugin).
     7This plugin offers features to style your pages and page widgets depending on the type of ticket you are dealing with.
    148
    15 If you want to edit the CSS on browser, use WikiCssPlugin or ThemeEnginePlugin.\\
    16 If you want to modify decoration link to new page, edit site.html and site.css.
     9Key features:
     10 1. Wiki Link Decoration by age of wiki page: add "new" css-class to link to wiki page that is young. You can specify the ages in `trac.ini`.
     11 1. Decayed Wiki: indicate how old the wiki page is. You can specify colors by age in seconds at `trac.ini`; so far this feature requires Python 2.7 or later.
     12 1. Ticket Link Decoration by field value: Set css-class to link to tickets by field value. You can specify field names at `trac.ini`.
     13 1. Decorate over intertrac links, with XmlRpcPlugin and [browser:/contextchromeplugin/0.12/contextchrome/cors.py corsEnabler] included.
     14 1. Ticket color by Type: Set css-class by type or specified field value on ticket. You can design for each type of ticket with trac:wiki:CookBook/SiteStyleCss feature.
     15 1. Wiki color by tags: Set css-class by tags added by TagsPlugin.
     16 1. marked for validation: Set css-class to field specified by validator, such as TracTicketValidatorPlugin or TracTicketConditionalValidatePlugin.
     17
     18If you want to edit the CSS on browser, use WikiCssPlugin or ThemeEnginePlugin. If you want to modify decoration link to new page, edit site.html and site.css.
    1719
    1820== Bugs/Feature Requests
     
    2224
    2325If you have any issues, create a
    24 [http://trac-hacks.org/newticket?component=ContextChromePlugin&owner=matobaa new ticket].
     26[/newticket?component=ContextChromePlugin new ticket].
    2527
    2628[[TicketQuery(component=ContextChromePlugin,group=type,format=progress)]]
     
    3739
    3840Sample trac.ini:
    39 {{{
    40 #!ini
     41{{{#!ini
    4142[components]
    4243contextchrome.linkdeco.internalstylesheet = enabled
     
    5051
    5152Example trac.ini:
    52 {{{
    53 #!ini
     53{{{#!ini
    5454[wiki]
    5555wiki_new_info_second = 432000
    5656}}}
     57
    5758[[Image(newpage.png)]]
    5859
     
    6061
    6162Sample trac.ini:
    62 {{{
    63 #!ini
     63{{{#!ini
    6464[wiki]
    65 decay_colors = 86400:#ffffff, 604800:#eeeeee, 2678400:#dddddd, 31536000:#aaaaaa, 2147483647: #777777
     65decay_colors = 86400: #ffffff, 604800: #eeeeee, 2678400: #dddddd, 31536000: #aaaaaa, 2147483647: #777777
    6666}}}
    6767
     
    7171
    7272Sample trac.ini:
    73 {{{
    74 #!ini
     73{{{#!ini
    7574[ticket]
    7675decorate_fields = owner, milestone, type
     
    7877
    7978Sample style.css:
    80 {{{
    81 #!css
     79{{{#!css
    8280a.type_is_defect      { background-color: #f5deb3; /* wheat */    }
    8381a.type_is_enhancement { background-color: #87ceeb; /* sky blue */ }
     
    8583a.owner_is_somebody   { border: maroon thin solid;                }
    8684}}}
     85
    8786[[Image(linkdeco.png)]]
    8887
    89 To decorate over intertrac links, use XmlRpcPlugin and CrossOriginResourceSharingEnabler as follows:[[BR]]
     88To decorate over intertrac links, use XmlRpcPlugin and CrossOriginResourceSharingEnabler as follows:
     89
    9090[[Image(cors.png)]]
    9191
     
    9393
    9494Sample style.css:
    95 {{{
    96 #!css
     95{{{#!css
    9796body.type_is_defect      { background-color: #f5deb3; /* wheat */    }
    9897body.type_is_enhancement { background-color: #87ceeb; /* sky blue */ }
     
    108107
    109108Sample trac.ini:
    110 {{{
    111 #!ini
     109{{{#!ini
    112110[ticketvalidator]
    113111validates = keywords, vote
     
    115113vote.rule = .+
    116114}}}
     115
    117116[[Image(TracTicketValidator.png)]]
    118117