docbrown/app/views/social_previews
Daniel Uber 2fbfd68172
Render social previews for tags with one of the two custom colors set (#16557)
* Initialize compare hex once in controller, fallback if color missing

This PR adds a fallback color choice when there are missing
bg_color_hex or text_color_hex (this is likely going to become more
common as we only show the bg_color_hex in the form).

The choices (black and white) may not be correct - this "custom, or
default" value choice should likely be made in a decorator or on the
model instead.

Addresses an error reported in
https://app.honeybadger.io/projects/66984/faults/83671065

* typo: Attribute name is text_color_hex
2022-02-15 09:56:57 -06:00
..
articles Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
comment.html.erb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00
listing.html.erb views/listings etc i18n (#15040) 2021-10-27 16:37:29 +01:00
tag.html.erb Render social previews for tags with one of the two custom colors set (#16557) 2022-02-15 09:56:57 -06:00
user.html.erb Refactoring to add helper method (#16064) 2022-01-12 11:21:44 -05:00