Sha256: 5024f104bc2d97b47af9bc8995e9c3d79c99c38d97ab0b31fe72d21cdb691d63

Contents?: true

Size: 989 Bytes

Versions: 17

Compression:

Stored size: 989 Bytes

Contents

<header>
  <div class="logo">
    <%= link_to Cambium.configuration.app_title, cambium.admin_dashboard_path %>
  </div>

  <div class="user dropdown-container">
    <%= link_to('#', :class => 'dropdown-trigger') do %>
      <%= content_tag(
        :span,
        current_user.name.blank? ? current_user.email : current_user.name,
        :class => 'name'
      ) %>
      <%= avatar(current_user, 84) %>
    <% end %>
    <div class="dropdown-menu">
      <ul>
        <%= content_tag(
          :li,
          link_to(
            'Edit Profile',
            cambium.edit_admin_user_path(current_user)
          )
        ) %>
        <%= content_tag(
          :li,
          link_to(
            'Sign Out',
            main_app.destroy_user_session_path,
          )
        ) %>
      </ul>
    </div>
  </div>

  <div class="search-box">
    <form action="<%= cambium.admin_search_path %>">
      <input type="text" name="q" placeholder="search ...">
    </form>
  </div>

</header>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cambium-1.3.0 app/views/cambium/admin/_header.html.erb
cambium-1.2.3 app/views/cambium/admin/_header.html.erb
cambium-1.2.2 app/views/cambium/admin/_header.html.erb
cambium-1.2.1 app/views/cambium/admin/_header.html.erb
cambium-1.2.0 app/views/cambium/admin/_header.html.erb
cambium-1.1.6 app/views/cambium/admin/_header.html.erb
cambium-1.1.5 app/views/cambium/admin/_header.html.erb
cambium-1.1.4 app/views/cambium/admin/_header.html.erb
cambium-1.1.3 app/views/cambium/admin/_header.html.erb
cambium-1.1.2 app/views/cambium/admin/_header.html.erb
cambium-1.1.1 app/views/cambium/admin/_header.html.erb
cambium-1.1.0 app/views/cambium/admin/_header.html.erb
cambium-1.0.4 app/views/cambium/admin/_header.html.erb
cambium-1.0.3 app/views/cambium/admin/_header.html.erb
cambium-1.0.2 app/views/cambium/admin/_header.html.erb
cambium-1.0.1 app/views/cambium/admin/_header.html.erb
cambium-1.0.0 app/views/cambium/admin/_header.html.erb