Sha256: bcfbfe9dcbe81aa1238e55a3156baf77afb2aca4aecc818cdbcc1b8493e05de5

Contents?: true

Size: 933 Bytes

Versions: 3

Compression:

Stored size: 933 Bytes

Contents

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

  ul.nav.pull-right

    li
      = link_to dashboard_path do
        i.icon-dashboard
        ' Dashboard
    - if cardboard_user_can_manage?(: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="http://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, "data-skip-pjax" => true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 app/views/layouts/cardboard/_main_topbar.html.slim
cardboard_cms-0.1.6 app/views/layouts/cardboard/_main_topbar.html.slim
cardboard_cms-0.1.4 app/views/layouts/cardboard/_main_topbar.html.slim