Sha256: 35e7cddcb5fab344da2454be8cd74fd3f594728739b4bff2459543baf39ba7d1

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

<nav><?r
	page_path = first.node.uri_path
	
	Utopia::Path[page_path.dirname].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
			?> &rsaquo; #{link.to_href}<?r
		else
			?> &rsaquo; <span>#{path.last}</span><?r
		end
	end
	
	if localization.localized?
		?> &bull; (<?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
?></nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
utopia-project-0.12.1 pages/_navigation.xnode
utopia-project-0.12.0 pages/_navigation.xnode
utopia-project-0.11.3 pages/_navigation.xnode