Sha256: 6cee75604107769bb66e2f8958825c8c6682cf0804657033e6931885ea60f1c4

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 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>
        <li>
          <%= link_to 'Edit Profile',
                      cambium.edit_admin_user_path(current_user) %>
        </li>
        <li>
          <%= link_to 'Sign Out', main_app.destroy_user_session_path,
                      :method => :delete %>
        </li>
      </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

2 entries across 2 versions & 1 rubygems

Version Path
cambium-1.3.2 app/views/cambium/admin/_header.html.erb
cambium-1.3.1 app/views/cambium/admin/_header.html.erb