Sha256: d8538f13b8db4c600d63e6375eb32000851fdd67885d6880ab996ba603479804
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
<header><?r page_path = first.node.uri_path.dirname Utopia::Path[page_path].descend do |path| unless path.last path = path + "index" end if link = links(path.dirname, name: path.last, locale: localization.current_locale, indices: true).first if replace = link[:replace]&.to_sym and base = controller[:base] ?> › #{link.to_href(content: base.public_send(replace))}<?r else ?> › #{link.to_href}<?r end else ?> › <span>#{path.last}</span><?r end end if lexical_path = controller[:lexical_path] current = [] lexical_path.each do |part| current << part ?> › <a href="/source/#{current.join('/')}/index">#{part}</a> <?r end end if guide = controller[:guide] ?> › <a href="/guides/#{guide.name}/index">#{guide.title}</a> <?r end if localization.localized? ?> • (<?r localization.all_locales.each.with_index do |locale, index| ?>#{index.zero? ? '' : ' '}<a href="#{localization.localized_path(page_path, locale)}">#{locale}</a><?r end ?>)<?r end ?></header>
Version data entries
11 entries across 11 versions & 1 rubygems