lib/generators/flexible_admin/templates/navigation.html.erb in flexible_admin-0.1.3 vs lib/generators/flexible_admin/templates/navigation.html.erb in flexible_admin-0.2.0
- old
+ new
@@ -1,22 +1,28 @@
<%% models = %w() %>
-<div class="topbar-wrapper" style="z-index: 5;">
- <div class="topbar" data-dropdown="dropdown" id="navigation">
- <div class="topbar-inner">
- <div class="container">
- <h3><a href="/admin">Home</a></h3>
+<div class="navbar">
+ <%% if admin_user_signed_in? %>
+ <div class="navbar-inner">
+ <div class="container">
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="/admin">Admin</a>
+ <div class="nav-collapse">
<ul class="nav">
<%% models.each do |item| %>
<%%= admin_nav_item(item) %>
<%% end %>
</ul>
- <div class="signin">
- <%% if current_admin_user.present? %>
- <%%= link_to "Sign out", destroy_admin_user_session_path %>
- <%% end %>
-
- </div><!-- .signin -->
+ <ul class='nav pull-right'>
+ <li><%%= link_to "Sign out", destroy_admin_user_session_path %></li>
+ </ul>
</div>
- </div><!-- /topbar-inner -->
- </div><!-- /topbar -->
-</div><!-- /topbar-wrapper -->
+ </div>
+ </div>
+ <%% else %>
+
+ <%% end %>
+</div>
\ No newline at end of file