Workshop previews template
This commit is contained in:
parent
438e2ebfdf
commit
9e1e89230e
7
app/views/workshops/_workshop_previews.html.haml
Normal file
7
app/views/workshops/_workshop_previews.html.haml
Normal file
@ -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<strong>\\1</strong>\r").gsub(/[\t ]*\r\n[\t ]*/s, '<br>').html_safe
|
Loading…
x
Reference in New Issue
Block a user