Closed osaris closed 10 years ago
Just put your if statements directly around your primary items calls, this should work.
Ok sorry for the useless ticket, don't know what I did but it didn't work when I tested last night ... It's okay right now ! Thx again.
hi @osaris
in my project i can't use icon_label_text
feaure. it says me undefined method. i want to add glyphicons to my menu but i can't.
Can u help me about this?
@altun it's a custom helper :
def icon_label_text(icon_name, label)
content_tag(:i, '', :class => icon_name) + (" " + label).html_safe
end
@altun it's a custom helper :
Oh sure! Thanks a lot.
I have a menu with primary items that I want to be hidden when their childs are empty (due to user rights). My code looks like :
I can't use a
if
on the primary item (:personnel) and it seems that:skip_if_empty => true
didn't work on primary items ?Any advice ?