Sha256: 7ad39cf18e64c0dac64f4eae3340a924f923261e922421415d7466b5c27ab23e

Contents?: true

Size: 906 Bytes

Versions: 4

Compression:

Stored size: 906 Bytes

Contents

.navbar.navbar-default.navbar-static-top{ role: 'navigation', style: 'margin-bottom: 0' }
  .navbar-header
    %button.navbar-toggle.collapsed{ 'type' => 'button', 'data-toggle' => 'collapse', 'data-target' => '.navbar-collapse' }
      %span.sr-only Toggle navigation
      %span.icon-bar
      %span.icon-bar
      %span.icon-bar
    %span.navbar-brand
      Ditty

  -if authenticated?
    = delete_form_tag("#{settings.map_path}/auth", attributes: { class: 'nav navbar-top-links navbar-form navbar-right' }) do
      %a.btn.btn-default{ href: "#{settings.map_path}/users/profile" } My Account
      %button.btn.btn-default{ type: 'submit' }
        / %i.ti-panel
        Logout
  - else
    %ul.nav.navbar-top-links.navbar-right
      %li
        %a.btn.btn-link{ href: "#{settings.map_path}/auth/login" }
          Log In
  .navbar-default.sidebar{ role: 'navigation' }
    = haml :'partials/sidebar'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ditty-0.7.2 views/partials/navbar.haml
ditty-0.7.1 views/partials/navbar.haml
ditty-0.7.0 views/partials/navbar.haml
ditty-0.7.0.pre.rc1 views/partials/navbar.haml