Sha256: 23fa7b5024112a54d87aa1b7142977847215d211b8662ae8cce3dacdd138a9a2
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
<% if @site && @site.header.present? %> <%= raw @site.header %> <% else %> <div class="navbar navbar-default navbar-static-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <%= link_to @site.title, root_path, class: "navbar-brand" %> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <% Storytime::Page.published.each do |page| %> <li><%= link_to page.title, storytime.page_url(page) %></li> <% end %> <li><%= link_to "Blog", storytime.posts_url %></li> </ul> <ul class="nav navbar-nav navbar-right"> <% unless user_signed_in? %> <li><%= link_to "Sign In", storytime.new_user_session_path %></li> <% end %> </ul> </div><!--/.nav-collapse --> </div> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.1 | app/views/storytime/application/_header.html.erb |