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