mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 10:49:12 -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
325 B
Plaintext
7 lines
325 B
Plaintext
-# The ideas over a member's jobs: the yellow box that says there are some, if there
|
|
-# are, and the overlay it opens. Only while the job ideas feature is on.
|
|
- if Feature.enabled?(:job_ideas)
|
|
- count = JobIdeas.count_for(owner)
|
|
= render 'jobs/ideas_banner', count: count if count.positive?
|
|
= render 'jobs/ideas_modal'
|