projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
task_server: pro Job mit Sprache vom konfiguriert initialisieren
[kivitendo-erp.git]
/
SL
/
Layout
/
MenuLeft.pm
diff --git
a/SL/Layout/MenuLeft.pm
b/SL/Layout/MenuLeft.pm
index
d740640
..
f2e8a05
100644
(file)
--- a/
SL/Layout/MenuLeft.pm
+++ b/
SL/Layout/MenuLeft.pm
@@
-15,7
+15,7
@@
sub javascripts_inline {
my $self = shift;
$self->SUPER::javascripts_inline;
my $sections = [ section_menu($self->menu) ];
my $self = shift;
$self->SUPER::javascripts_inline;
my $sections = [ section_menu($self->menu) ];
- $self->
render('menu/menu', { output => 0 }
,
+ $self->
presenter->render('menu/menu'
,
sections => $sections,
)
}
sections => $sections,
)
}
@@
-51,7
+51,7
@@
sub section_menu {
my $menuitem = $menu->{$item};
my $olabel = apply { s/.*--// } $item;
my $ml = apply { s/--.*// } $item;
my $menuitem = $menu->{$item};
my $olabel = apply { s/.*--// } $item;
my $ml = apply { s/--.*// } $item;
- my $icon_class = apply {
y/ /-/
} $item;
+ my $icon_class = apply {
$_ =lc $_; s/[^a-z0-9_-]/-/g
} $item;
my $spacer = "s" . (0 + $item =~ s/--/--/g);
next if $level && $item ne "$level--$olabel";
my $spacer = "s" . (0 + $item =~ s/--/--/g);
next if $level && $item ne "$level--$olabel";