mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
- 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.
6 lines
292 B
Plaintext
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)
|