Sha256: f8010c0ee9d0a2dcb0e45f6c3eebaac277750dd7eb23ee8e69c9c08a6eb98583

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

<%= render Plutonium::UI::Layout::Header.new do |header| %>
  <% header.with_brand_logo do %>
    <%= resource_logo_tag(classname: "mr-3 h-10") %>
  <% end %>

  <% header.with_action do %>
    <%=
      render_component :nav_grid_menu, label: "Apps" do |menu|
        menu.with_item url: "#", name: "Sales", icon: "outline/sale-percent"
        menu.with_item url: "#", name: "Users", icon: "outline/users"
      end
    %>
  <% end %>

  <% header.with_action do %>
    <%= render_component :nav_user, email: current_user.try(:email) || current_user, logout_url: try(:logout_url) do |nav_user| %>
      <% nav_user.with_section do |section| %>
        <% section.with_link url: "#", label: "My profile" %>
        <% section.with_link url: "#", label: "Account settings" %>
      <% end %>

      <% nav_user.with_section do |section| %>
        <% section.with_link url: "#", label: "My likes" do |link| %>
          <% link.with_leading do %>
            <%= render_icon "outline/heart", classname: "mr-2 text-gray-400" %>
          <% end %>
        <% end %>

        <% section.with_link url: "#", label: "Pro version" do |link| %>
          <% link.with_leading do %>
            <%= render_icon "outline/fire", classname: "mr-2 text-primary-600 dark:text-primary-500" %>
          <% end %>
          <% link.with_trailing do %>
            <%= render_icon "outline/angle-right", size: :sm %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plutonium-0.15.15 app/views/plutonium/_resource_header.html.erb
plutonium-0.15.14 app/views/plutonium/_resource_header.html.erb