Skip to content

Commit

Permalink
change last tea in host overview to date. changing next tea is confus…
Browse files Browse the repository at this point in the history
…ing me
  • Loading branch information
ankitshah811 committed Oct 8, 2014
1 parent b4dfd60 commit 5aa1134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/host_overview.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
%th Total Attendees
- @hosts.each do |h|
%tr
%td= link_to h.name, host_city_path(h, h.home_city)
%td= link_to h.name, host_city_path(h.home_city, h)
%th= h.tea_times.count
- t = h.tea_times.where('start_time <= ?', Time.now.utc).last || "No tea time"
%th= link_to(t, tea_time_path(t))
%th= link_to(t.start_time.strftime('%B %-e'), tea_time_path(t))
%th= link_to h.tea_times.where('start_time >= ?', Time.now.utc).first || "No teas scheduled"
%th= h.tea_times.map {|t| t.attendances.count}.inject(0, &:+)

0 comments on commit 5aa1134

Please sign in to comment.