Sha256: bf403bef3ff47caa8e83a0a8ff2c6f2ae80500c7ec70c296aaf32142b6051212

Contents?: true

Size: 467 Bytes

Versions: 10

Compression:

Stored size: 467 Bytes

Contents

module ThinkFeelDoDashboard
  # Display the membership status for a participant and membership
  module ParticipantsHelper
    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
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.1.19 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.18 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.17 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.16 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.15 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.14 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.13 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.12 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.11 app/helpers/think_feel_do_dashboard/participants_helper.rb
think_feel_do_dashboard-1.1.10 app/helpers/think_feel_do_dashboard/participants_helper.rb