Sha256: b252dbfcca96f85e9a4264da0f81bb5592e46f3314d34c8f60788e74a3d8286f

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

aside.menu
  ul.menu-list
    li
      = link_to main_app.root_path do
        span Back to Main App&nbsp
        i.fa-sign-out.fa&nbsp

    li = authz_link_to 'Dashboard', root_url, {class: "#{'is-active' if current_page? root_path}"}, skip_scoping: true

  p.menu-label Authorization
  ul.menu-list
    li = authz_link_to 'Roles', roles_path, {class: "#{'is-active' if current_page? roles_path}"}, skip_scoping: true
    li = authz_link_to 'Business Processes', business_processes_path, {class: "#{'is-active' if current_page? business_processes_path}"}, skip_scoping: true
    li = authz_link_to 'Controller Actions', controller_actions_path, {class: "#{'is-active' if current_page? controller_actions_path}"}, skip_scoping: true

  p.menu-label Rolables
  ul.menu-list
    - Authz.rolables.map(&:authorizable_association_name).each do |association_name|
      li = authz_link_to association_name.to_s.titleize, send("#{association_name}_path"), {class: "#{'is-active' if current_page? send("#{association_name}_path")}"}, skip_scoping: true

  / p.menu-label Scoping

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authz-0.0.1.alpha5 app/views/layouts/authz/_menu.html.slim
authz-0.0.1.alpha4 app/views/layouts/authz/_menu.html.slim