Using main_side with no entries renders a ghost box
Bug #420778 reported by
Brad Crittenden
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
If a page has an some global actions that are only conditionally enabled for, say, owners and admins, and they are put in the side slot, then when the page is viewed by an unprivileged person those controls aren't rendered but there is a thin grey box where the side portlet should be.
Choosing between main_side and main_only is not something easily done conditionally. Can this behavior be fixed?
affects: | launchpad → launchpad-registry |
Changed in launchpad-registry: | |
status: | New → Triaged |
importance: | Undecided → Low |
affects: | launchpad-registry → launchpad-foundations |
Changed in launchpad-foundations: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
The milestone template resolved this by adding a CSS rule to the page. Each page needs to write a rule to identify that nothing in the menu will render. CSS does not support rules based on children, and the menu infrastructure does not tell us if any links will render