Module: RewardsHelper
- Defined in:
- app/helpers/rewards_helper.rb
Overview
typed: false encoding: utf-8 frozen_string_literal: true
Instance Method Summary collapse
Instance Method Details
#reward_popover(reward) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/rewards_helper.rb', line 5 def reward_popover(reward) return '' if reward.nil? content_tag :div, class: 'btn btn-default btn-sm' do concat content_tag(:div, 'Reward', class: 'show-popover-reward') popup = content_tag(:div, class: 'hide') do concat content_tag(:p, "Points Pending: #{reward.points_pending}") concat content_tag(:p, "Points Total: #{reward.points_total}") end concat popup end end |