mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 18:59:13 -05:00
Admins switch features on and off at /admin/features, kept in Flipper. Job ideas (the page, the banners and the overlay) only show while its flag is on. Features are off until switched on. Closes #5050
7 lines
389 B
Plaintext
7 lines
389 B
Plaintext
-# A yellow bar over the front page when there are job ideas to look at. It leads to
|
|
-# their jobs, with the ideas showing. Only while the job ideas feature is on.
|
|
- count = Feature.enabled?(:job_ideas) ? JobIdeas.count_for(current_member) : 0
|
|
- if count.positive?
|
|
.home-ideas
|
|
= render 'jobs/ideas_banner', count: count, href: member_jobs_path(current_member, ideas: 1), open: false
|