= link_to wiki_page_path(result.attachable) do = icon_for ancestor = result.filename = render 'search_trail', node: result.attachable, with_node: true .search-trail - if !result.attachable.is_a?(Space) ||   %i.fa.fa-file = result.attachable.title ||   %i.fa.fa-bullseye = result.attachable.root.title