From cec29682c4282420794aacb5076f79f9ed4834e2 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 20 Jun 2024 13:50:04 -0700 Subject: [PATCH] Add NC Trades button to Dyeworks in Item Getting Guide --- app/assets/stylesheets/items/sources.sass | 1 + app/views/items/sources.html.haml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index 93a1e6b7..a680c767 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -43,6 +43,7 @@ /* When item names get long, don't let the buttons wrap to give the * item names more space. The names should wrap more instead! */ text-wrap: nowrap + margin: .25em tbody tr diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index 2c4cc5c1..a14e693b 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -104,6 +104,10 @@ = cart_icon alt: "" Buy base (#{item.dyeworks_base_item.current_nc_price} NC) + = button_link_to "NC Trades", + item_trades_path(item, type: "offering"), + target: "_blank", icon: search_icon + - if @items[:np].present? %h2 Neopoint items :markdown