<% if var(:no_history) %> <%= var :person %> is not a part of the scoring system. <% elsif var(:no_giver_history) %> <%= var :giver %> has not awarded any points to <%= var(:receiver).name %>. <% elsif var(:scores).empty? %> <%= var(:receiver).name %> has no points history. <% else %> <% var(:scores).each do |score| %> [<%= score.created_at.strftime '%m/%d %I:%M %p' %>] <%= score.giver.name %> <%= score.change > 0 ? 'gave' : 'docked' %> <%= score.receiver.name %> <%= score.change.abs.pluralize('point') %><% if score.note %>: <%= score.note %><% end %> <% end %> <% end %>