Sha256: efdd6f20e3e552a4e4a838c7eed8cbd450dad1b6db1c47845ea3dfe8d9da63b6

Contents?: true

Size: 633 Bytes

Versions: 9

Compression:

Stored size: 633 Bytes

Contents

<header><label for="toggle">☰</label> <?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
			?> &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
?></header>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
utopia-project-0.15.1 pages/_header.xnode
utopia-project-0.15.0 pages/_header.xnode
utopia-project-0.14.2 pages/_header.xnode
utopia-project-0.14.1 pages/_header.xnode
utopia-project-0.14.0 pages/_header.xnode
utopia-project-0.13.3 pages/_header.xnode
utopia-project-0.13.2 pages/_header.xnode
utopia-project-0.13.1 pages/_header.xnode
utopia-project-0.13.0 pages/_header.xnode