refactored statements

This commit is contained in:
2017-07-06 16:50:10 +02:00
parent 0a20c632b8
commit d7d42ae241
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
- supporters = Supporter.where('publicity.state' => :approved).desc('publicity.created_at')
== Redcarpet::Markdown.new(Redcarpet::Render::HTML).render "**test**"
h1 = title t('.title')
- supporters.each do |supporter|
.statement
@@ -8,7 +8,7 @@ h1 = title t('.title')
- unless supporter.publicity.organisation.blank?
em= ", #{supporter.publicity.organisation}"
br
p = supporter.publicity.statement
article== Redcarpet::Markdown.new(Redcarpet::Render::HTML).render supporter.publicity.statement
hr.clearfix
.text-center = link_to t(".submit_your_own_statement"), new_publicity_path