docbrown/app/helpers
Jeremy Friesen b4b1212a33
Adding conditional rendering of navigation links (#16362)
Prior to this commit we had an inline logic check on whether or not to
render a navigation link.  As we are looking to rollout the feature flag
for Listings, we needed to add another somewhat complex conditional.

This commit moves the inline conditionals to a helper function, which
makes testing the logic far easier.  Especially since we need to bombard
the tests with the combination of 3 different boolean checks.  (And one
of those boolean checks requires even more but could be stubbed).

There should be no UI differences, as we're presently assuming the
Listings feature is enabled.

Related to forem/rfcs#291
2022-02-01 12:23:58 -05:00
..
admin_helper.rb Escape periods and display the group name properly (#15819) 2021-12-17 17:35:42 -05:00
application_helper.rb Adding conditional rendering of navigation links (#16362) 2022-02-01 12:23:58 -05:00
articles_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
authentication_helper.rb Remove Creator Onboarding Feature Flags from Codebase (#15982) 2022-01-31 11:30:43 -07:00
broadcasts_helper.rb Add ahoy + welcome notification tracking (#8758) [deploy] 2020-06-18 13:40:14 -07:00
comments_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
crayons_helper.rb Update crayons_icon_tag helper (#16099) 2022-01-14 17:14:42 +07:00
date_helper.rb Add I18n date format example (#14973) 2021-10-08 15:08:56 -04:00
display_ad_helper.rb Rubocop fixes (#14868) 2021-09-30 13:22:09 -04:00
feedback_messages_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
listing_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
notifications_helper.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
organization_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
profile_helper.rb [Small Wins] Show character limits for profile inputs (#15255) 2021-11-05 09:11:42 -04:00
rate_limit_checker_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
settings_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
social_image_helper.rb Fix Ruby 2.7 kwargs' warnings & misc spec warnings (#13256) 2021-04-06 16:57:59 -04:00
social_link_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00