From 9ca712ebc7c9dca78d3a110e7d9f5bee6a2fb660 Mon Sep 17 00:00:00 2001 From: Godwin Date: Tue, 29 Sep 2015 22:52:50 -0700 Subject: [PATCH] Links to maps on schedule --- app/views/schedule/_programme.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/schedule/_programme.html.haml b/app/views/schedule/_programme.html.haml index 75101b0..46c1fdd 100644 --- a/app/views/schedule/_programme.html.haml +++ b/app/views/schedule/_programme.html.haml @@ -15,7 +15,9 @@ %th=I18n.l(Date.today + t.hours, :format => :short) - day_schedule[:locations].each do |location, location_schedule| %tr - %th=locations[location.to_s].title + %th + %a{href: "https://maps.google.com/maps?q=#{URI.escape(locations[location.to_s].address.gsub(/\s+/, '+'))}", target: :_blank} + =locations[location.to_s].title - skip = 0 - (times.first...times.last).step(0.5).each do |t| - t = t.to_i if t == t.to_i