basic_app/app/views/portlets/render_public/_petitioncontent.html.haml
Nicolas Bally fd027c16c1 initial
2020-04-21 21:53:16 +02:00

16 lines
323 B
Plaintext

-begin
-if input.petition and @lang and !admin
-@petition =input.petition
-@petition_lang = @petition.petition_langs.where(:lang_site_id => @lang.id).first
-@signator = @petition.signators.new(:country => "France")
=render :partial => "public/petitions/show"
-else
petition
-rescue
=""