From 9e1e89230e7b70c3b19371a6a10f3242e239cf11 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 18 Sep 2015 16:46:51 -0700 Subject: [PATCH] Workshop previews template --- app/views/workshops/_workshop_previews.html.haml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/views/workshops/_workshop_previews.html.haml diff --git a/app/views/workshops/_workshop_previews.html.haml b/app/views/workshops/_workshop_previews.html.haml new file mode 100644 index 0000000..c3b6523 --- /dev/null +++ b/app/views/workshops/_workshop_previews.html.haml @@ -0,0 +1,7 @@ +%ul.workshop-previews + - workshops.each do |w| + - if w.title + %li + =link_to view_workshop_path(@this_conference.slug, w.id) do + %h4=_!(w.title) + %p=_!(w.info || '').gsub(/\n\#+(.*?)\r/s, "\n\\1\r").gsub(/[\t ]*\r\n[\t ]*/s, '
').html_safe