[wp-meta] [Making WordPress.org] #5928: Add a row background color-coding legend to the top of the various core Trac reports

Making WordPress.org noreply at wordpress.org
Sun Oct 17 16:52:18 UTC 2021


#5928: Add a row background color-coding legend to the top of the various core
Trac reports
-----------------------------+---------------------
 Reporter:  pbiron           |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:
Component:  Trac             |  Resolution:
 Keywords:  has-screenshots  |
-----------------------------+---------------------

Comment (by pbiron):

 Here's a couple of examples of what the legend might look like for the
 "Next Major Release" report, using different types of wiki formatting.

 First example is with the `||` table wiki-markup and the `[[span(style
 =background-color: xxx)]]` macro.  Using the `span` macro I can't seem to
 get the background-color to cover the entire table cell.  Also, the
 "caption" is an `<h2>` because I can't figure out how to add a "true"
 table `<caption>` with the wiki-markup.

 == Row background-color Legend
 ||[[span(style=background: #fdc, priority is 'highest omg bbq' or severity
 is 'critical' or 'blocker'  )]]||
 ||[[span(style=background: #fed, priority is 'highest omg bbq' or severity
 is 'critical' or 'blocker'  )]]||
 ||[[span(style=background: #ffb, priority is 'high' or severity is 'major'
 )]]||
 ||[[span(style=background: #ffd, priority is 'high' or severity is 'major'
 )]]||
 ||[[span(style=background: #e7ffff, priority is 'low' or 'lowest' or
 severity is 'trivial' or 'minor'  )]]||
 ||[[span(style=background: #dff, priority is 'low' or 'lowest' or severity
 is 'trivial' or 'minor'     )]]||

 Second example is with the `#!html` processor syntax (i.e., embed a real
 html table).  Personally, I like this version better:

 * the background-color spans the whole table cell
 * uses a "real" `<caption>` element in the table
 * when added to the report header, it should be able to pick up the
 background-colors directly from the `report.css` stylesheet (in this
 comment I've done it with `<tr style='xxx'>`, since the `report.css`
 stylesheet isn't loaded here

 {{{
 #!html
 <table class='tickets' style='border: 1px solid #ccc'>
 <caption>Row background-color Legend</caption>
 <tr class='color1-odd'  style='border: 1px solid #ccc'>
 <td style='background-color: #fdc'>priority is 'highest omg bbq' or
 severity is 'critical' or 'blocker'</td>
 </tr>
 <tr class='color1-even'  style='border: 1px solid #ccc'>
 <td style='background-color: #fed'>priority is 'highest omg bbq' or
 severity is 'critical' or 'blocker'</td>
 </tr>
 <tr class='color2-odd'  style='border: 1px solid #ccc'>
 <td style='background-color: #ffb'>priority is 'high' or severity is
 'major'</td>
 </tr>
 <tr class='color2-even'  style='border: 1px solid #ccc'>
 <td style='background-color: #ffd'>priority is 'high' or severity is
 'major'</td>
 </tr>
 <tr class='color4-odd'  style='border: 1px solid #ccc'>
 <td style='background-color: #e7ffff'>priority is 'low' or 'lowest' or
 severity is 'trivial' or 'minor'</td>
 </tr>
 <tr class='color4-even'  style='border: 1px solid #ccc'>
 <td style='background-color: #dff'>priority is 'low' or 'lowest' or
 severity is 'trivial' or 'minor'</td>
 </tr>
 </table>
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5928#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list