/ TODO: put these in SidebarView
- nav_action_links = @resource.nav_action_links(Phoenix.Controller.action_name(@conn), @conn.assigns[:resource])
- page_paths = @resource.page_paths(@conn.assigns.talon)
- resource_paths = @resource.resource_paths(@conn.assigns.talon)
- alias __MODULE__, as: View

aside.main-sidebar
  section.sidebar style="height: auto;"
    ul.sidebar-menu
      li.header.text-uppercase Pages
      = render_many page_paths, View, "nav_resource_link.html", as: :resource_path
      li.header.text-uppercase Resources
      = render_many resource_paths, View, "nav_resource_link.html", as: :resource_path
      = if List.first nav_action_links do
        li.header.text-uppercase Actions
        = render_many nav_action_links, View, "nav_action_link.html", as: :action_path

/ TODO: put these in SidebarView
- nav_action_links = @resource.nav_action_links(Phoenix.Controller.action_name(@conn), @conn.assigns[:resource])
- page_paths = @resource.page_paths(@conn.assigns.talon)
- resource_paths = @resource.resource_paths(@conn.assigns.talon)
- alias __MODULE__, as: View

aside.main-sidebar
  section.sidebar style="height: auto;"
    ul.sidebar-menu
      li.header.text-uppercase Pages
      = render_many page_paths, View, "nav_resource_link.html", as: :resource_path
      li.header.text-uppercase Resources
      = render_many resource_paths, View, "nav_resource_link.html", as: :resource_path
      = unless Enum.empty? nav_action_links do
        li.header.text-uppercase Actions
        = render_many nav_action_links, View, "nav_action_link.html", as: :action_path

Use unless empty check in sidebar
Use unless empty check in sidebar
talonframework/talon,talonframework/talon