You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps if we allowed a fallback_text option that could have a default, we could remove some of this duplication and noise. When used on its own it might look like this:
# in config/components.rbGovuk::Components.configuredo |conf|
default_summary_list_fallback_text: "Not set"end# in your viewsummary_list_row.with_value(text: object.stuff)
Here, like we've done elsewhere, we could disable it on an ad hoc basis with fallback_text: false.
The text was updated successfully, but these errors were encountered:
Sometimes across projects we end up with 'or' statements within views so if a attribute is missing we display some relevant text instead, like this:
It's a bit untidy and can get repetitive.
Perhaps if we allowed a
fallback_text
option that could have a default, we could remove some of this duplication and noise. When used on its own it might look like this:But with a default it's much cleaner.
Here, like we've done elsewhere, we could disable it on an ad hoc basis with
fallback_text: false
.The text was updated successfully, but these errors were encountered: