@@ 273-277 (lines=5) @@ | ||
270 | return true; |
|
271 | }; |
|
272 | }); |
|
273 | $builder->create('admin', Link::class, function(LinkFactory $factory) { |
|
274 | $factory->title = 'Admin'; |
|
275 | $factory->url = url('/admin'); |
|
276 | $factory->displayRule = false; |
|
277 | }); |
|
278 | $builder->create('logout', Link::class, function(LinkFactory $factory) { |
|
279 | $factory->title = 'Logout'; |
|
280 | $factory->url = url('/logout'); |
|
@@ 359-363 (lines=5) @@ | ||
356 | $factory->title = 'All'; |
|
357 | $factory->url = url('/users'); |
|
358 | }); |
|
359 | $factory->builder->create('admins', Link::class, function(LinkFactory $factory) { |
|
360 | $factory->title = 'Admins'; |
|
361 | $factory->url = url('/users', ['role' => 'admin']); |
|
362 | $factory->displayRule = false; |
|
363 | }); |
|
364 | $factory->builder->create('create', SubMenu::class, function(SubMenuFactory $factory) { |
|
365 | $factory->title = 'Create'; |
|
366 | $factory->builder->create('user', Link::class, function(LinkFactory $factory) { |