Poor heading shown for multi-item exhibit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Software Center Agent |
Confirmed
|
Low
|
Unassigned | ||
software-center (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
software-center trunk r2309, Ubuntu 11.10 beta 1
1. PISTON_
2. Click on the banner for "frozen bubble, k3b, vim and blender".
3. Look at the header for the list.
What you see: "frozen-
What you should see: "Morley's morsels", or some similarly imaginative title.
This is because the API no longer includes a title_translated field, on the grounds that the HTML made it unnecessary. But it's still necessary when showing the list. (Even when we switch from the list view to a tile view later, we couldn't really just reuse the banner verbatim, because that would risk looking as if clicking the banner hadn't done anything.)
A short-term improvement in the client would be to show no heading at all, rather than the list of package names. Beyond that, though, we probably need to reintroduce title_translated in the API and the admin interface.
Changed in software-center (Ubuntu): | |
importance: | Undecided → Medium |
Changed in software-center (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in software-center-agent: | |
status: | New → Confirmed |
importance: | Undecided → Low |
The client will now either show:
- title_translated if that is part of the returned json data
- the html title (if that is defined) in the html of the json
- the first h1 tag from the html *if* that does not contain any subtags (like <emph><b> etc)
The best long term fix IMO is to re-introduce either title_translated or ensure to always add a html title.