Sha256: 4309118bcbef03cba6b4a59baadc73895aa78f3d912908e270e6850471fea9c1
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
<div class="navbar navbar-inverse navbar-static-top" style="z-index: 1001; margin: 0;" role="navigation"> <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 "Storytime", storytime.root_path, class: "navbar-brand" %> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li <%= active_nav_item_class("posts") %>><%= link_to "Posts", storytime.dashboard_posts_path %></li> <li <%= active_nav_item_class("pages") %>><%= link_to "Pages", storytime.dashboard_pages_path %></li> <li <%= active_nav_item_class("media") %>><%= link_to "Media", storytime.dashboard_media_index_path %></li> <% if Pundit.policy(current_user, Storytime::User).index? %> <li <%= active_nav_item_class("users") %>><%= link_to "Users", storytime.dashboard_users_path %></li> <% end %> <% if Pundit.policy(current_user, Storytime::Site).edit? %> <li <%= active_nav_item_class("sites") %>><%= link_to "Settings", dashboard_nav_site_path(@site) %></li> <% end %> </ul> <ul class="nav navbar-nav navbar-right" style="margin-right: 15px;"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <%= current_user.email %> <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><%= link_to "My Account", storytime.edit_user_registration_path %></li> <li><%= link_to "Sign Out", storytime.destroy_user_session_path, method: :delete %></li> </ul> </li> </ul> </div><!--/.nav-collapse --> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.1 | app/views/storytime/dashboard/_navigation.html.erb |