Skip to content

Commit

Permalink
update gift card text on homepage dashboard. Issue #132
Browse files Browse the repository at this point in the history
  • Loading branch information
shua123 committed Sep 14, 2016
1 parent 6797cdc commit 90bd362
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app/models/concerns/giftable_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,4 @@ module GiftableMethods

extend ActiveSupport::Concern

def signup_gc_sent
signup_cards = gift_cards.where(reason: 'signup')

# if self.gift_cards.where(reason: signup)
# self.alertings.where("ends_at >= ? or ends_at is null", Time.now).order(:starts_at)
end

end
2 changes: 1 addition & 1 deletion app/views/dashboard/_person.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="recent-signup">
<span class="name"><%= link_to "#{person.first_name} #{person.last_name}", person %></span><br/>
<span class="address"><%= address_fields_to_sentence(person) %></span><br/>
<span class="signup-gift-card">Received Gift Card: <%= person.signup_gc_sent %></span>
<span class="signup-gift-card">Gift Card Mailed: <%= t person.signup_gc_sent.class %></span>
</div>
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@

en:
hello: "Hello world"
TrueClass: "Yes"
FalseClass: "No"

0 comments on commit 90bd362

Please sign in to comment.