_readonly_pool.slim
555 Bytes
table
thead
th Day
th Home
th Your bet
th Away
th Your bet
th Result
th Home Score
th Away Score
th Points
- pool.matches.each do |match|
- bet = current_user.bets.find_or_initialize_by(match_id: match.id)
tr
td = l(match.date, format: :short)
td = match.local
td = bet.try(:score_local)
td = match.visit
td = bet.try(:score_visit)
td = match.result ? match.result.upcase : 'PENDING'
td = match.score_local
td = match.score_visit
td = bet.try(:points)