Need a tales formatter to render Links with icon only, or the icon as a suffix
Bug #338451 reported by
Curtis Hovey
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.
To post a comment you must log in.
Fix this will make my important branch less than 800 lines so that I can request a review.