Sha256: e27db1a9d5a25f536ac0498914eb2a5b9b8a8ec4fb990f9ba7141182188735eb

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

.menu
  ul.menu-list
    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

.menu
  ul.menu-list
    li
      = link_to main_app.root_path do
        span[style="margin-right: 1rem"] Back to Main App
        i.fa-sign-out.fa&nbsp

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authz-0.0.5 app/views/layouts/authz/_menu.html.slim
authz-0.0.4 app/views/layouts/authz/_menu.html.slim
authz-0.0.3 app/views/layouts/authz/_menu.html.slim
authz-0.0.2 app/views/layouts/authz/_menu.html.slim
authz-0.0.1 app/views/layouts/authz/_menu.html.slim