Sha256: 471d545136308ca55fd89e5eb85372b0e0157e9a155712e563a39155c636ef4d
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 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", "/", class: "navbar-brand" %> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <% Storytime::PostType.all.each do |type| %> <li <%= active_nav_item_class("posts", type.name) %>><%= link_to type.name.humanize, storytime.dashboard_posts_path(post_type: type.name) %></li> <% end %> <li <%= active_nav_item_class("post_types") %>><%= link_to "Types", storytime.dashboard_post_types_path %></li> <li <%= active_nav_item_class("media") %>><%= link_to "Media", storytime.dashboard_media_index_path %></li> <% if Pundit.policy(current_user, Storytime.user_class).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_dashboard_user_path(current_user) %></li> <li><%= link_to "Sign Out", main_app.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.2 | app/views/storytime/dashboard/_navigation.html.erb |