Sigh, the "Valentine Plushie" series is messing with me again! It doesn't follow the previously established pattern of the names being "<series> <color> <species>", because in this case the base color is considered "Valentine". Okay, well! In this change we add `full_name` as an explicit database field, and set the previous full name value as a fallback. (We also extract the generic fallback logic into `ApplicationRecord`, to help us express it more concisely.) We also tweak `adjective_name` to be able to shorten custom `full_name` values, too. That way, in the outfit editor, the Styles options show correct values like "Cherub Plushie" for the "Cherub Plushie Acara". I also make some changes in the outfit editor to better accommodate the longer series names, to try to better handle long words but also to just only use the first word of the series main name anyway. (Currently, all series main names are one word, except "Valentine Plushie" becomes "Valentine".)
12 lines
428 B
Text
12 lines
428 B
Text
%li
|
|
= link_to view_or_edit_alt_style_url(alt_style) do
|
|
= image_tag alt_style.preview_image_url, class: "preview", loading: "lazy"
|
|
.name= alt_style.full_name
|
|
.info
|
|
%p
|
|
Added
|
|
= time_tag alt_style.created_at,
|
|
title: alt_style.created_at.to_formatted_s(:long_nst) do
|
|
= time_with_only_month_if_old alt_style.created_at
|
|
- if support_staff? && !alt_style.real_series_name?
|
|
%p ⚠️ Needs series name
|