Sha256: b5e352c45c234a905dec35fddcf6763eb3fb3b4f8ff0e4297d7344126513bd79

Contents?: true

Size: 1017 Bytes

Versions: 5

Compression:

Stored size: 1017 Bytes

Contents

<%= render component_tag(x: {data: "appSidebarNav"}) do %>
  <% if actions? %>
    <div class="nav-item nav-item-action">
      <%= render Coco::App::SidebarNav::Item.new(label: "Add") do |item| %>
        <% item.with_icon do %>
          <span class="nav-item-action-button">
            <%= coco_icon :plus, size: :full %>
          </span>
        <% end %>

        <% item.with_menu do %>
          <%= coco_sidebar_nav_menu(class: "nav-card-menu") do |menu| %>
            <% actions_data.each do |action| %>
              <% menu.with_block_link(action[:href], **action.except(:href, :icon, :label, :description)) do %>
                <div class="card">
                  <%= coco_icon(action[:icon], size: :md) %>
                  <h4><%= action[:label] %></h4>
                  <div><%= raw action[:description] %></div>
                </div>
              <% end %>
            <% end %>
          <% end %>
        <% end %>
      <% end %>
    </div>
  <% end %>

  <%= safe_join(items) %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coveragebook_components-0.16.0 app/components/coco/app/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.15.0 app/components/coco/app/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.14.0 app/components/coco/app/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.13.1 app/components/coco/app/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.13.0 app/components/coco/app/sidebar_nav/navbar/navbar.html.erb