diff --git a/app/assets/stylesheets/items/sources.sass b/app/assets/stylesheets/items/sources.sass index a680c767..9f639d0b 100644 --- a/app/assets/stylesheets/items/sources.sass +++ b/app/assets/stylesheets/items/sources.sass @@ -116,6 +116,9 @@ text-decoration-line: underline text-decoration-style: dotted + &[data-complexity="high"] + width: 70% + /* For wearable items that belong to a specific set that all come together, * like a Paint Brush. */ &[data-group-type="bundle"] diff --git a/app/views/items/sources.html.haml b/app/views/items/sources.html.haml index a14e693b..018eb516 100644 --- a/app/views/items/sources.html.haml +++ b/app/views/items/sources.html.haml @@ -46,7 +46,7 @@ [dyeworks]: https://www.neopets.com/mall/dyeworks/ - %table.item-list + %table.item-list{"data-complexity": "high"} %thead %tr %td.thumbnail-cell @@ -74,31 +74,31 @@ - base_item = item.dyeworks_base_item - content_for :subtitle, flush: true do - #{link_to base_item.name, base_item, target: "_blank"}, - #{probability item.dyeworks_odds} chance - - 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. (Thanks Owls team!)" - } - (Permanent) - - elsif item.dyeworks_limited_final_date.present? - %span.dyeworks-timeframe{ - title: "This recipe is part of a limited-time Dyeworks " + - "event. The last day you can dye this is " + - "#{item.dyeworks_limited_final_date.to_fs(:month_and_day)}. " + - "(Thanks Owls team!)" - } - (Thru #{item.dyeworks_limited_final_date.to_fs(:month_and_day)}) - - elsif item.dyeworks_limited? - %span.dyeworks-timeframe{ - title: "This recipe is part of a limited-time Dyeworks " + - "event, and is scheduled to be removed from the NC Mall " + - "soon. (Thanks Owls team!)" - } - (Limited-time) + = link_to base_item, target: "_blank" do + #{probability item.dyeworks_odds} chance + - 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. (Thanks Owls team!)" + } + (Always available) + - elsif item.dyeworks_limited_final_date.present? + %span.dyeworks-timeframe{ + title: "This recipe is part of a limited-time Dyeworks " + + "event. The last day you can dye this is " + + "#{item.dyeworks_limited_final_date.to_fs(:long)}. " + + "(Thanks Owls team!)" + } + (Limited-time: #{item.dyeworks_limited_final_date.to_fs(:month_and_day)}) + - elsif item.dyeworks_limited? + %span.dyeworks-timeframe{ + title: "This recipe is part of a limited-time Dyeworks " + + "event, and is scheduled to be removed from the NC Mall " + + "soon. (Thanks Owls team!)" + } + (Limited-time) %button{onclick: "alert('Todo!')"} = cart_icon alt: ""