Sha256: 66bc02599a6e704461155fd2bd70ac0df020af2b7e686bfadc8f0216d2fd759a
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 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 ?> › #{link.to_href(content: controller[: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
8 entries across 8 versions & 1 rubygems