Need a tales formatter to render Links with icon only, or the icon as a suffix

Bug #338451 reported by Curtis Hovey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Curtis Hovey

Bug Description

Launchpad 2.0 UI renders links with just their icon, or in the case of edit, with the icon as a suffix. The templates are bloated with logic that tests of the link is enabled, then creates the img and anchor. a tales formatter would make development easier. I propose:
   link/fmt:icon to create icon only links
   link/fmt:suffix to create a text link followed by an icon.

The tales formatter should use templates bases on inline-link so that we can update the rules easily. If needed we can create
    link/fmt:prefix to represent the default way.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Fix this will make my important branch less than 800 lines so that I can request a review.

Changed in launchpad-foundations:
assignee: nobody → sinzui
importance: Undecided → Low
milestone: none → 2.2.3
status: New → In Progress
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fixed in launchpad/devel r7906.

Changed in launchpad-foundations:
status: In Progress → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fix released in Launchpad 2.2.3.

Changed in launchpad-foundations:
status: Fix Committed → Fix Released
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.