Module: ThinkFeelDoDashboard::ParticipantsHelper
- Defined in:
- app/helpers/think_feel_do_dashboard/participants_helper.rb
Overview
Display the membership status for a participant and membership
Instance Method Summary collapse
Instance Method Details
#membership_status(participant, membership) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/helpers/think_feel_do_dashboard/participants_helper.rb', line 4 def membership_status(participant, membership) if participant.memberships.active.where( "memberships.is_complete = false").include?(membership) "<span class=\"label label-success\">Active</span> ".html_safe else "<span class=\"label label-danger\">Inactive</span> ".html_safe end end |