mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-02 11:14:23 -05:00
19 lines
805 B
Plaintext
19 lines
805 B
Plaintext
-# The ideas to choose from: the switches, then each section. On the page, and in the overlay.
|
|
.idea-filters
|
|
- JobIdeas::SWITCHES.each_key do |name|
|
|
- on = @skipped.exclude?(name)
|
|
= link_to job_idea_switch_path(name, @skipped), class: ['idea-filter', ('off' unless on)] do
|
|
= on ? '✓' : '+'
|
|
= t("job_ideas.filter.#{name}")
|
|
- if @ideas.empty?
|
|
%p.idea-none= t('job_ideas.none')
|
|
- job_idea_sections(@ideas).each do |section, ideas|
|
|
.notepad-group
|
|
.notepad-heading
|
|
%h2= t("job_ideas.section.#{section}")
|
|
%small= job_idea_section_note(section, current_member)
|
|
= render partial: 'job_ideas/idea', collection: ideas, as: :idea, locals: { skip: @skipped }
|
|
- if @more.positive?
|
|
%p.idea-more= t('job_ideas.more', count: @more)
|
|
%p.notepad-note= t('job_ideas.footer')
|