add tales for @@/yes (checkmark) and @@/no (x-mark) images

Bug #240759 reported by Edwin Grubbs
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Curtis Hovey

Bug Description

Displaying a checkmark or x-mark for boolean fields is very handy, so it should be a tales formatter.

<img src="/@@/yes" tal:condition="context/active"/>
<img src="/@@/no" tal:condition="not: context/active"/>

Related branches

Changed in launchpad:
assignee: nobody → edwin-grubbs
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Hi Edwin, can you give an example of where that formatter would be used?

Changed in launchpad:
status: New → Incomplete
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
assignee: edwin-grubbs → nobody
Curtis Hovey (sinzui)
tags: added: tech-debt
Revision history for this message
Curtis Hovey (sinzui) wrote :

I have a sprite based tales formatter that is used as context/image:boolean to create a yes or no presentation for reports that need to show values is present or absent, true or false, and yes or no.

Changed in launchpad-foundations:
assignee: nobody → Curtis Hovey (sinzui)
importance: Undecided → Low
milestone: none → 10.02
status: Incomplete → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
tags: added: qa-needstesting
Revision history for this message
Curtis Hovey (sinzui) wrote : Bug 240759 Fix released

Fixed released in launchpad-project 10.02.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
Gary Poster (gary)
tags: removed: qa-needstesting
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.