app/views/trestle/shared/_sidebar.html.erb in trestle-0.8.6 vs app/views/trestle/shared/_sidebar.html.erb in trestle-0.8.7
- old
+ new
@@ -1,6 +1,6 @@
-<aside class="app-sidebar<%= " #{cookies["trestle:sidebar"]}" if cookies["trestle:sidebar"] %>">
+<aside class="app-sidebar">
<header class="app-sidebar-header">
<button class="navbar-toggle">
<span class="sr-only"><%= t("admin.ui.toggle_navigation", default: "Toggle navigation") %></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@@ -11,10 +11,10 @@
</header>
<div class="app-sidebar-inner">
<nav class="app-nav">
<% collapsed = cookies["trestle:navigation:collapsed"].try(:split, ",") || [] %>
- <% Trestle.navigation.each do |group, items| %>
+ <% Trestle.navigation.visible(self).each do |group, items| %>
<ul<% if group.present? && collapsed.include?(group.id) %> class="collapsed"<% end %>>
<% if group.present? %>
<li class="nav-header"><%= link_to group.label, "##{group.id}" %></li>
<% end %>