Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rosschapman committed Apr 22, 2024
1 parent 3cfdc50 commit 7db7d3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/furniture/marketplace/menu_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<%- marketplace.tags.where(is_section: true).rank(:slot).each do |tag| %>
<div>
<h1><%= tag.label %></h1>
<div class="grid sm:grid-rows-2 lg:grid-cols-3 gap-3">
<%- tag.products.with_all_rich_text.unarchived.each do |product| %>
<%= render Marketplace::Menu::ProductComponent.new(product:, cart:) %>
<%- end %>
</div>
<h1><%= tag.label %></h1>
<div class="grid sm:grid-rows-2 lg:grid-cols-3 gap-3">
<%- tag.products.with_all_rich_text.unarchived.each do |product| %>
<%= render Marketplace::Menu::ProductComponent.new(product:, cart:) %>
<%- end %>
</div>
<%- end %>
2 changes: 2 additions & 0 deletions app/furniture/marketplace/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ class Tag < Record

attr_accessor :marketplace
location(parent: :marketplace)

default_scope -> { order(label: :asc) }
end
end

0 comments on commit 7db7d3c

Please sign in to comment.