2017-04-21 16:31:05 +02:00
|
|
|
- supporters = Supporter.where('publicity.state' => :approved).desc('publicity.created_at')
|
2017-07-06 16:50:10 +02:00
|
|
|
== Redcarpet::Markdown.new(Redcarpet::Render::HTML).render "**test**"
|
2017-04-14 12:46:03 +02:00
|
|
|
h1 = title t('.title')
|
|
|
|
|
- supporters.each do |supporter|
|
|
|
|
|
.statement
|
|
|
|
|
= image_tag supporter.publicity.avatar.url(:small), alt: "#{supporter.first_name} #{supporter.last_name}"
|
|
|
|
|
h2= "#{supporter.first_name} #{supporter.last_name}, #{supporter.city}"
|
|
|
|
|
- unless supporter.publicity.organisation.blank?
|
|
|
|
|
em= ", #{supporter.publicity.organisation}"
|
|
|
|
|
br
|
2017-07-06 16:50:10 +02:00
|
|
|
article== Redcarpet::Markdown.new(Redcarpet::Render::HTML).render supporter.publicity.statement
|
2017-04-14 12:46:03 +02:00
|
|
|
hr.clearfix
|
|
|
|
|
|
2017-04-19 22:52:37 +02:00
|
|
|
.text-center = link_to t(".submit_your_own_statement"), new_publicity_path
|