Files
growstuff/app/views/seeds/_other_tab.html.haml
T
Brenda Wallace fdebe79b7d Refactor seed management features
- Introduced `@other_count` in SeedsController to track in-stock and finished seeds based on the filter applied.
- Enhanced SeedsHelper with new methods: `seed_owner_label`, `seed_stacks`, and `seed_choice_link` for better organization and readability.
- Updated views to utilize new helper methods, improving the display of seed information and filtering options.
- Adjusted the Seed model to include methods for determining if a seed's sow-by date has passed and to return the heirloom type.
- Improved tests for filters and helper methods to ensure accurate functionality and coverage.
2026-10-16 17:32:09 +13:00

6 lines
292 B
Plaintext

-# What the tab a search or filter has not looked in holds, so an empty result
-# is not read as "none anywhere".
- if @other_count.positive?
#{@other_count} more #{@show_finished ? 'in stock' : 'finished'}.
= link_to 'Show them', url_for(finished: (@show_finished ? nil : 1), page: nil)