Skip to content

Instantly share code, notes, and snippets.

@nvolungis
Created September 11, 2015 19:11
Show Gist options
  • Save nvolungis/04934333177893a943bb to your computer and use it in GitHub Desktop.
Save nvolungis/04934333177893a943bb to your computer and use it in GitHub Desktop.
<% cache 'nav' do %>
<div class='nav'>
<% @nav.items.each do |nav_item| %>
<li class='nav-item' data-target='<%= nav_item.href %>'>
<a href="/#<%= nav_item.href %>">
<span class="icon <%= nav_item.icon %>"></span>
<span class='nav-link'><%= nav_item.title %></span>
</a>
</li>
<!-- new nav item -->
<li class='nav-item' data-target='/communityassembled'>
<a href='/communityassembled'>
<span class='icon icon-NEWICON'></span>
<span class='nav-link'>Community Assembled</span>
</a>
</li>
<% end %>
<%= render :partial => 'application/social_links', :locals => {:social_channels => @nav.social_channels} %>
<div class='signup-link'>
<p> <a href='#newsletter'>Newsletter Signup</a> | <a href='#gift-cards'>Gift Cards</a></p>
</div>
<div class='nav-address'>
<%= render :partial => 'application/address' %>
</div>
<div class='button-area'>
<a href='/communityassembled' class='button light-gray-button'>Community Assembled</a>
</div>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment