From b2615eaf00b8e3a32a79d38610172b6fee943960 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 27 May 2024 14:25:12 -0700 Subject: [PATCH] Use table layout for other NC items in Item Getting Guide To start, we just link to DTI's own NC trades. I also want to add OWLS values in here too! --- app/views/items/sources.html.haml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index a67a9854..4a2c7751 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -99,7 +99,17 @@ purchased at all anymore, and can only be obtained via gifts or trades. [mall]: https://ncmall.neopets.com/ - = render @other_nc_items + %table.item-list + %thead + %td + %th{colspan: 2} + Total: #{pluralize @other_nc_items.size, "item"} + %tbody + - @other_nc_items.each do |item| + = render "item_list_row", item: do + = button_link_to "NC Trades", + item_trades_path(item, type: "offering"), + target: "_blank", icon: search_icon - content_for :stylesheets do = page_stylesheet_link_tag "items/sources"