Sha256: 74d11ddb8f1f1bb3b8a8535fec595e95c6b247aae42e7f352aea23a2739ed2ac

Contents?: true

Size: 803 Bytes

Versions: 3

Compression:

Stored size: 803 Bytes

Contents

<% if initiative.answered? && translated_attribute(initiative.answer).present? %>
  <% announcement_body = capture do %>
  <h5><%= t("decidim.initiatives.initiatives.result.answer_title") %>:</h5>
  <p>
    <% if initiative.answer_url.present? %>
      <a href="<%= initiative.answer_url %>" target="_blank">
        <%= decidim_sanitize_editor translated_attribute initiative.answer %>
      </a>
    <% else %>
      <%= decidim_sanitize_editor translated_attribute initiative.answer %>
    <% end %>
  </p>
  <% end %>

  <%= cell("decidim/announcement", { body: announcement_body }, callout_class: "success") %>
<% end %>

<% if initiative.rejected? %>
  <%= cell("decidim/announcement", t("decidim.initiatives.initiatives.result.initiative_rejected_reason"), callout_class: "warning") %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-initiatives-0.28.0 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.0.rc5 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.0.rc4 app/views/decidim/initiatives/initiatives/_result.html.erb