From 9bc6be05f8810d9f29c19481c01e3a791e959308 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sun, 9 Jun 2024 15:21:42 -0700 Subject: [PATCH] Add "Permanent" label to permanent Dyeworks items in Item Getting Guide --- app/assets/stylesheets/items/sources.sass | 6 ++++++ app/views/items/sources.html.haml | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index 1545387f..8818ec82 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -67,6 +67,12 @@ text-decoration-style: dotted cursor: help + .dyeworks-timeframe + font-style: italic + text-decoration-line: underline + text-decoration-style: dotted + cursor: help + .special-color-explanation text-wrap: balance font-style: italic diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index 138a1b54..4751ca28 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -67,9 +67,16 @@ - base_item = item.dyeworks_base_item - content_for :subtitle, flush: true do - %span.dyeworks-explanation - = link_to base_item.name, base_item, target: "_blank" - + 1 potion + = link_to base_item.name, base_item, target: "_blank" + + 1 potion + - if item.dyeworks_permanent? + %span.dyeworks-timeframe{ + title: "This recipe is NOT currently scheduled to be removed " + + "from Dyeworks. It might not stay forever, but it's also " + + "not part of a known limited-time event, like most " + + "Dyeworks items are." + } + (Permanent) %button{onclick: "alert('Todo!')"} = cart_icon alt: ""