131 Commits

Author SHA1 Message Date
Eric Lippmann
b6b87796ed Menu: Link to the navigation dashboard if menu entry has children but no URL 2017-11-21 22:55:45 +01:00
Eric Lippmann
e7ca817e81 Make Navigation::findItem() public
We need this method public for the navigation dashbaord.
2017-11-21 22:55:45 +01:00
Eric Lippmann
21dbe4ec47 Only render icons of root navigation items
The upcoming navigation dashboard creates its links from the menu items in configuration.php.
Now, we encourage users to specify icons for second-level menu items but do not want render them in our menu.
2017-11-21 22:55:45 +01:00
Eric Lippmann
3660606ca1 Allow to set a description for navigation items
We will introduce a navigation dashboard for root menu items which do not a have a URL but children.
2017-11-21 22:55:45 +01:00
Johannes Meyer
181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Eric Lippmann
b3bc1b6f81 Let the SummaryNavigationItemRenderer show the worst state
fixes #11185
2016-12-08 10:40:22 +01:00
Eric Lippmann
a9461ada54 Only render a menu item when it's not empty
A menu item is not empty when it either has children or a defined URL.
2016-11-28 14:56:17 +01:00
Alexander A. Klimov
00880710ed Navigation::fromArray(): pass $name only as string to addItem()
fixes #12923
2016-10-18 18:06:51 +02:00
Marius Hein
6607af61e1 Set dashboard active if it is not disabled 2016-04-26 13:50:02 +02:00
Alexander A. Klimov
eecd15ee68 NavigationItem: fall back to the default renderer if an error occurrs
fixes #10486
2016-04-25 15:26:08 +02:00
Johannes Meyer
c7443924bd NavigationItemRenderer: Ignore target for '#' urls
fixes #11197
2016-02-22 11:13:23 +01:00
Alexander A. Klimov
9ef78e6856 Fix double escape of `&' in navigation items
fixes #11190
2016-02-19 15:38:34 +01:00
Alexander A. Klimov
a83ab2c7cb Escape URLs of navigation items while rendering them
fixes #11091
2016-02-18 15:01:21 +01:00
Alexander A. Klimov
474803fee4 Change all license headers to only reflect a file's year of creation
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
7fd575080e PHP7: Rename String to StringHelper
refs #10251
2016-01-27 16:46:55 +01:00
Alexander A. Klimov
21f7af4b64 Revert "Merge branch 'bugfix/logout-requires-restart-of-browser-10330'"
This reverts commit 94f4c670c16d0ee427cd652982d90dd2726491ca, reversing
changes made to 7d5c15469ed2ccb9f4ee377dcdcbaed34796b72e.

refs #10330
2015-12-17 18:50:51 +01:00
Alexander A. Klimov
f6cd4794ee NavigationItemRenderer::renderTargetAttribute(): don't use the same name for two different variables
refs #10330
2015-12-17 17:45:03 +01:00
Alexander A. Klimov
a9b818d52c NavigationItemRenderer: split actualLinkTarget() into getIcingaLinkTarget() and getHtmlLinkTarget()
refs #10330
2015-12-17 17:38:21 +01:00
Alexander A. Klimov
5edd8df1b6 NavigationItemRenderer: provide more human-readable aliases for native HTML link targets
refs #10330
2015-12-17 16:52:14 +01:00
Alexander A. Klimov
2473c4bbef NavigationItemRenderer: provide more human-readable aliases for internal link targets
refs #10330
2015-12-17 16:51:45 +01:00
Eric Lippmann
8a26e81c1c Remove LogoutNavigationItemRenderer
refs #5543
2015-11-10 14:06:49 +01:00
Eric Lippmann
ba4256d983 Quick and dirty fix menu in FF
refs #5543
2015-11-04 17:49:43 +01:00
Eric Lippmann
4eb92438dd Add nav-level-$level CSS classes to navigation 2015-10-27 13:52:18 +01:00
Eric Lippmann
6e5ba364fb CSS: Introduce badge-nav-item
refs #5543
2015-10-26 12:44:11 +01:00
Eric Lippmann
8341415d28 nav: Give item renderer a chance to set the CSS class of the outer li element
refs #5543
2015-10-26 12:32:49 +01:00
Eric Lippmann
e07e16d7a1 lib: Remove UserNavigationItemRenderer 2015-10-22 14:26:53 +02:00
Eric Lippmann
56ed92a8e6 Merge branch 'master' into feature/dope-layout-5543 2015-10-01 21:29:35 +02:00
Johannes Meyer
14ae04b631 RecursiveNavigationRenderer: Allow to enforce the standard item renderer 2015-10-01 17:43:48 +02:00
Eric Lippmann
3d2521abf0 Merge branch 'master' into feature/dope-layout-5543 2015-10-01 17:42:24 +02:00
Johannes Meyer
8c8af9cd50 DashboardPane: Fix that ordering dashlets is persistent 2015-10-01 17:35:11 +02:00
Johannes Meyer
0cc06d6af9 NavigationItem: Improve merge "algorithm" 2015-10-01 17:12:55 +02:00
Thomas Gelf
cb5f741f22 UserNavigationItemRenderer: disable avatar
Broken on ff, no such image, rendering issues - postponed
2015-10-01 16:39:20 +02:00
Johannes Meyer
d54e5f62e6 NavigationItem: Accept priority while merging if none is set yet 2015-10-01 16:32:47 +02:00
Eric Lippmann
968754ec2e CSS: Add class no-icon to menu items w/o an icon
refs #5543
2015-10-01 02:51:46 +02:00
Eric Lippmann
231c63b703 Merge branch 'master' into feature/dope-layout-5543 2015-09-30 18:52:52 +02:00
Johannes Meyer
1c7b398219 Navigation: Do not provide "dashlet" as default item type
Please revert this commit once we're about to finish the new
implementation.

refs #6084
2015-09-30 12:55:21 +02:00
Johannes Meyer
95d1ce371c Navigation: Add static method getItemTypeConfiguration()
refs #10246
2015-09-30 11:18:15 +02:00
Eric Lippmann
98f1e9028e Fix user menu CSS classes
refs #5543
2015-09-28 16:40:16 +02:00
Eric Lippmann
ed6da19876 lib: Support setting CSS class for li on navigation items
refs #5543
2015-09-28 16:39:28 +02:00
Eric Lippmann
9dff864b80 Prepare markup for new user menu
refs #5543
2015-09-28 14:48:54 +02:00
Johannes Meyer
d627f419ef Fix that an object's notes and action url label is escaped twice
fixes #10218
2015-09-28 09:05:17 +02:00
Eric Lippmann
2996cb77ab Navigation: Close the navigation item after all children have been rendererd
refs #5543
2015-09-27 15:43:49 +02:00
Eric Lippmann
63e0549618 Navigation: Support empty labels for creating containers
refs #5543
2015-09-27 15:42:26 +02:00
Eric Lippmann
d59b09ca48 Fix badge markup in the BadgeNavigationItemRenderer
refs #5543
2015-09-27 14:16:51 +02:00
Eric Lippmann
4c798d4e04 Fix coding style in the SummaryNavigationItemRenderer
refs #5543
2015-09-27 14:16:10 +02:00
Eric Lippmann
901a5b6d34 lib: Remove obsolete navigation renderer classes
refs #5543
2015-09-27 13:32:14 +02:00
Eric Lippmann
d79a160547 Navigation: Disable ids on li for the moment
refs #5543
2015-09-27 13:11:49 +02:00
Eric Lippmann
d3ac1b16ee Merge branch 'master' into feature/dope-layout-5543 2015-09-27 13:11:11 +02:00
Eric Lippmann
ed9a6aa39d lib: Fix Navigation::addItem()
refs #5543
2015-09-27 12:26:58 +02:00
Eric Lippmann
1122ffafad lib: Add navigation classes (WIP)
- Lacks custom renderer functionality
- Lacks navigation item priorities
- Lacks permission handling

refs #5600
2015-09-25 13:16:44 +02:00