Sha256: 89cb41e67476d02aba70ce8581843b7432e0f52cf06138683a306f45f021ec06

Contents?: true

Size: 828 Bytes

Versions: 6

Compression:

Stored size: 828 Bytes

Contents

%ul.menu.vertical
  - if policy(Integral::Page).create?
    %li
      = link_to new_backend_page_url do
        = icon('file-text-o')
        %span= t('integral.navigation.page')

  - if policy(Integral::Post).create? && Integral.blog_enabled?
    %li
      = link_to new_backend_post_url do
        = icon('rss')
        %span= t('integral.navigation.post')

  - if policy(Integral::Image).create?
    %li
      = link_to new_backend_img_url do
        = icon('picture-o')
        %span= t('integral.navigation.image')

  - if policy(Integral::List).create?
    %li
      = link_to new_backend_list_url do
        = icon('list')
        %span= t('integral.navigation.list')
  - if policy(current_user).create?
    %li
      = link_to new_backend_user_url do
        = icon('user')
        %span= t('integral.navigation.user')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
integral-1.4.0 app/views/layouts/integral/backend/_create_dropdown.haml
integral-1.3.0 app/views/layouts/integral/backend/_create_dropdown.haml
integral-1.2.0 app/views/layouts/integral/backend/_create_dropdown.haml
integral-1.1.0 app/views/layouts/integral/backend/_create_dropdown.haml
integral-1.0.1 app/views/layouts/integral/backend/_create_dropdown.haml
integral-1.0.0 app/views/layouts/integral/backend/_create_dropdown.haml