From 7de12f70c842ad76e462a2ee78644ba20ba65951 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 27 May 2017 14:42:51 +0200 Subject: [PATCH] The markdown digest now includes the country code --- app/views/digests/markdown.html.haml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/views/digests/markdown.html.haml b/app/views/digests/markdown.html.haml index 286b5ff3..33f0678a 100644 --- a/app/views/digests/markdown.html.haml +++ b/app/views/digests/markdown.html.haml @@ -4,17 +4,9 @@ = t '.week', count: @events.count \ - - @events.group_by { |evt| evt.start_time.to_date }.sort.each do |day, evts| - * #{l day, format: :long} - - evts.each do |event| - \ * [**#{event.city}**] [#{event.title}](#{event_url event}) - - second_part = capture_haml do - = title - \===== - - @events.sort_by(&:start_time).each do |event| - [#{event.city}] [#{event.title}](#{event_url event}) - #{display_date event} + [#{event.region.region.try(:code) || event.region.try(:code)} #{event.city}] [#{event.title}](#{event_url event}) - #{display_date event} \----- - lines = strip_tags(event.description).split(/\r\n/).reject(&:blank?)