Files
ch420/app/views/pages/statements.de.slim
T

14 lines
590 B
Plaintext
Raw Normal View History

2017-04-21 16:31:05 +02:00
- supporters = Supporter.where('publicity.state' => :approved).desc('publicity.created_at')
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
= supporter.publicity.statement
hr.clearfix
2017-04-19 22:52:37 +02:00
.text-center = link_to t(".submit_your_own_statement"), new_publicity_path