Sha256: e9a36314c03ee3352ad18c8d8c66d67a6a52b246744fd06e0eb3858fed6765e3

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

.ui.fixed.inverted.menu
  .menu
    = link_to '/', class: 'header item' do
      = app_name.titleize
    a.item href="/"  Home
    .ui.simple.dropdown.item Dropdown
      i.dropdown.icon
      .menu
        a.item href="#"  Link Item
        a.item href="#"  Link Item
        .divider
        .header Header Item
        .item
          i.dropdown.icon Sub Menu
          .menu
            a.item href="#"  Link Item
            a.item href="#"  Link Item
        a.item href="#"  Link Item
<%- unless options[:noauth] %>
    .right.menu
      - if user_signed_in?
        - if current_user.staff_member?
          = link_to 'admin', admin_root_path, class: 'item'
        .ui.simple.dropdown.item
          span.current_user= current_user.email
          i.dropdown.icon
          .menu
            = link_to "#{icon('fas', 'user-circle mr-1')} Edit Account".html_safe, edit_user_registration_path, class: 'item'
            - if current_user != true_user
              = link_to stop_impersonating_users_path, method: :post, class: 'item', title: 'Stop impersonating user' do
                == "#{icon('fas','theater-masks')} Stop Impersonating"
            .divider
            = link_to "#{icon('fas', 'sign-out-alt mr-1')} Logout".html_safe, destroy_user_session_path, method: :delete, class: 'item'
      - else
        = link_to('Login', new_user_session_path, class: 'item')
<%- end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.6 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.5 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.4 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.3 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.2 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt
kowl-0.0.1 lib/kowl/templates/app/views/shared/navigation/semantic.html.slim.tt