Sha256: d327877355e48cc66904aeeef33c7c816e34e4893583fbe385e34c7ef3436b56

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

<% 
@link_options = @link_options || {} 
@link_options.reverse_merge!({ :home => {}, :about => {} })	
@subnav ||= []
%>

<%= nav((@options || {})) do |n| %>
	<%= n.link "Home", "/", @link_options[:about] %>
	<%= n.link "About", "/about" do |subnav| %>
		<% @subnav.each do |item| %>
		<%= subnav.link item, "/#{item.to_s.downcase}" %>
		<% end %>
	<% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facades-1.1.0 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.9 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.8 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.6 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.4 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.3 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.2 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.1 spec/internal/app/views/navigation/_multi_option_list.html.erb
facades-1.0.0 spec/internal/app/views/navigation/_multi_option_list.html.erb