Actions
Defect #3259
closedremove "main-menu" div when the menu is empty
Start date:
2009-04-29
Due date:
% Done:
100%
Estimated time:
Resolution:
Fixed
Affected version:
Description
On some pages, like Home or My page, the project menu is empty but the div html is still present.
It's a problem when you a background image in CSS, because you see the background image without the menu items (see the screenshot).
Could you remove:
<div id="main-menu"> </div>
or add a CSS class to identify an empty menu ?
Thank you very much.
Files
Related issues
Updated by Anonymous almost 15 years ago
- File redmine-3259.diff redmine-3259.diff added
- % Done changed from 0 to 100
Fixed by:
- Saving for the result of render_main_menu into menu_html
- Adding a class "empty" on main_menu if menu_html.nil?
The attached patch should resolve this issue.
Updated by Felix Schäfer almost 15 years ago
- Status changed from Resolved to 7
- Assignee set to Jean-Philippe Lang
JPLang, pushing this up on your radar. The patch seems ok, though I'm not sure this kind of logic should be in a view, I don't have a better idea at the moment though.
Updated by Eric Davis almost 15 years ago
- Status changed from 7 to Resolved
- Target version set to 0.9.4
- Resolution set to Fixed
Updated by Jean-Philippe Lang over 14 years ago
- Status changed from Resolved to Closed
Updated by Go MAEDA over 3 years ago
- Related to Defect #13773: remove "main-menu" div when the project menu is empty added
Actions