Skip to content

Commit 4b86da6

Browse files
committed
Removed shop banner
1 parent c65d7a4 commit 4b86da6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/controllers/pages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def request_review
105105
# Shows the under construction page. Requires authentication.
106106
def shop
107107
require_auth or return
108-
# @shop_items = ShopItem.where(status: [ "active", "in stock", "stock", nil, "" ]).order(:cost)
109-
render :shop_under_construction
108+
@shop_items = ShopItem.where(status: [ "active", "in stock", "stock", nil, "" ]).order(:cost)
109+
# Renders app/views/pages/shop.html.erb by default
110110
end
111111

112112
# POST /shop/purchase

app/views/pages/shop.html.erb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@
121121

122122
</section>
123123
</div>
124-
<div class="card" style="margin-top: 12px; background: #fff3cd; border: 1px solid #ffeeba; color: #856404; padding: 10px; text-align: center;">
125-
Working progress! We're building the shop page, more items will be added soon!
126-
</div>
127124
</main>
128125

129126
<!-- Item Modal -->
@@ -150,9 +147,7 @@
150147
</div>
151148
<%= form_with url: purchase_path, method: :post, local: true, id: "shop-modal-form" do %>
152149
<input type="hidden" name="item_id" id="shop-modal-item-id" value="">
153-
<input type="hidden" name="category" id="shop-modal-category" value="">
154150
<input type="hidden" name="variant" id="shop-modal-variant" value="">
155-
<input type="hidden" name="quantity" id="shop-modal-quantity" value="1">
156151
<button id="shop-modal-buy" type="submit" class="btn btn--primary btn--block">Purchase</button>
157152
<% end %>
158153
</div>

0 commit comments

Comments
 (0)