module RulesEngineView
module Navigate
def re_breadcrumbs *links
return if links.empty?
result = ''.html_safe
result << '
'.html_safe
links[0 ... -1].each do |link|
result << link
result << ">".html_safe
end
result << "".html_safe
result << links[-1]
result << "".html_safe
# result << ">" if links[-1] == links[0]
result << '
'.html_safe
result
end
def re_breadcrumbs_right *links
return if links.empty?
result = ''.html_safe
result << ''.html_safe
links[0 ... -2].each do |link|
result << link
result << "
>".html_safe
end
result << "
".html_safe
result << links[-2]
result << "".html_safe
# result << "
>" if links[-2] == links[0]
result << "
".html_safe
result << links[-1]
result << "
".html_safe
result << '
'.html_safe
result
end
end
end