petities/petitions.eu

View on GitHub
app/views/signature_mailer/inform_user_of_answer_mail.text.erb

Summary

Maintainability
Test Coverage
<%= t("mail.dear") %> <%= @signature.person_name %>,


<% if not @petition.answer.nil? %>
    <%= t('mail.petition.has_answer', {
      name: @signature.person_name,
      email: @signature.person_email,
      date: @signature.signed_at.strftime('%d-%m-%Y'),
      petition: @petition.name,
      petition_handover: @petition.date_projected,
      petition_url: petition_url(@petition),
      unique_url: @unique_key,
      petition_descr: @petition.description,
      petitioner_email: @petition.petitioner_email,
      petition_office: @petition.organisation_name})
      %>

<% @petition.answer %>

<% else %>

    <%= t('mail.petition.has_no_answer', {
      name: @signature.person_name,
      email: @signature.person_email,
      date: @signature.signed_at.strftime('%d-%m-%Y'),
      petition: @petition.name,
      petition_handover: @petition.date_projected,
      petition_url: petition_url(@petition),
      petition_descr: @petition.description,
      petition_office: @petition.organisation_name,
      petitioner_email: @petition.petitioner_email})
      %>
<% end %>


<%= t("mail.petition.now_hide_signature") %>

<%= @unique_key %>

<%= t("mail.confirm.signoff") %>