Sha256: d96e244c3a56974e89d94b8c7f6e7bae3330b1ae144caeed0151c1c047ad3aca

Contents?: true

Size: 986 Bytes

Versions: 1

Compression:

Stored size: 986 Bytes

Contents

.navbar-inner
  
  #cardboard_logo CB
  
  = link_to main_app.root_path, id: "brand" do
    = Cardboard::Setting.company_name rescue Cardboard.application.site_title

  ul.nav.pull-right

    li
      = link_to dashboard_path do
        i.icon-dashboard
        ' Dashboard
    - if cardboard_user_can_manage?(:settings) && Cardboard.used_with_settings?
      li
        = link_to settings_path do 
          i.icon-cogs 
          | Settings
    

    li.divider

    li.dropdown.third
      a.dropdown-toggle data-toggle="dropdown" href="#"
        img alt="Avatar" src="https://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(cardboard_user.email.downcase)}" width="23" height="23" style="width:23px !important;"
        span.user-name.hidden-phone
          = cardboard_user.email
        b class="caret"

      ul.dropdown-menu
        li= link_to "Account", my_account_path 
        li= link_to "Logout", main_app.send(Cardboard.application.logout_link_path), :method => :delete

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 app/views/layouts/cardboard/_main_topbar.html.slim