Sha256: 5dcfd6743d62a5ec2a481a0cda6c57972f685fe6a6b9319186a1e5c6f4280698

Contents?: true

Size: 737 Bytes

Versions: 3

Compression:

Stored size: 737 Bytes

Contents

%ul.nav.nav-sidebar
  %li{class: current_class?(sites_path)}
    = link_to(sites_path) do
      Sites
      - if current_page?(sites_path)
        %span.sr-only (current)
  %li{class: current_class?(new_site_path)}
    = link_to(new_site_path) do
      New Site
      %i.glyphicon.glyphicon-plus
      - if current_page?(new_site_path)
        %span.sr-only (current)
  - if @site.present?  && !current_page?(new_site_path(@site)) && !@site.new_record?
    %li{class: current_parent_class?(@site)}
      = link_to(settings_site_path(@site)) do
        = @site.statixite_name
        - if current_page?(settings_site_path(@site))
          %span.sr-only (current)
    %ul.nav.nav-sidebar
      = render 'layouts/statixite/site_sub_items'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/views/layouts/statixite/_dash_nav.html.haml
statixite-1.0.1 app/views/layouts/statixite/_dash_nav.html.haml
statixite-1.0.0 app/views/layouts/statixite/_dash_nav.html.haml