Sha256: 235c057c39940a0e14128b3d613249efa990e4370256582339f7249b6f81c867

Contents?: true

Size: 1 KB

Versions: 17

Compression:

Stored size: 1 KB

Contents

<%= render component_tag(x: {data: "appSidebarNav"}) do %>
  <% if actions? %>
    <div class="nav-item nav-item-action">
      <%= render Coco::App::Blocks::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

17 entries across 17 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.12.1 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.12.0 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.11.0 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.10.1.beta.2 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.10.1.beta.1 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.10.1.beta.0 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.10.0 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.9.1 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.9.0 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.9 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.8 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.7 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.6 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.5 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.4 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb
coveragebook_components-0.8.3 app/components/coco/app/blocks/sidebar_nav/navbar/navbar.html.erb