Sha256: 2037803614dca161932e201661979283bfd2321999ad1e42f7bdaa862860551c

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

-# add this condition to remove empty sidebar
-# if @active
%nav.sidebar
  - case @active
  - when :shop
    = link_to 'Товары', admin_products_path, class: 'sidebar__link'
  - when :materials
    = link_to 'Статьи', [:admin, :articles], class: 'sidebar__link'
  - when :system
    = link_to 'Пользователи', admin_users_path, class: 'sidebar__link'
  - else
    = link_to 'Демо active', nil, class: ['sidebar__link', '_active']
    = link_to nil, class: ['sidebar__link'] do
      Демо
      %span.sidebar__badge 2

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redde-0.1.10 lib/generators/redde/layout/templates/base/_sidebar.html.haml
redde-0.1.9 lib/generators/redde/layout/templates/base/_sidebar.html.haml
redde-0.1.8 lib/generators/redde/layout/templates/base/_sidebar.html.haml