Closed Rubytastic2 closed 8 years ago
You could either add the needed html using javascript or you could use name_generator in your navigation config, here is a snippet of one of my projects:
navigation.name_generator = Proc.new do |name, item|
if item.key == :'current-lang'
"<i class='fa fa-caret-down'></i> #{name}".html_safe
elsif item.key == :'lang-label'
"<label>#{name}</label>".html_safe
else
name
end
end
Would it be possible to add html inside a
Could not find anything in the wiki on how to do this? Could someone please elaborate on this? thank you!