Sha256: 816a9f25f1e43c19567382773e7c897fb1446679ab2a83833fd13446c66e6ad3

Contents?: true

Size: 838 Bytes

Versions: 10

Compression:

Stored size: 838 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? %>
      <%= link_to initiative.answer_url, target: "_blank", rel: "noopener noreferrer" do %>
        <%= decidim_sanitize_editor translated_attribute initiative.answer %>
      <% end %>
    <% 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

10 entries across 10 versions & 1 rubygems

Version Path
decidim-initiatives-0.29.1 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.4 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.29.0 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.3 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.29.0.rc4 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.29.0.rc3 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.29.0.rc2 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.29.0.rc1 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.2 app/views/decidim/initiatives/initiatives/_result.html.erb
decidim-initiatives-0.28.1 app/views/decidim/initiatives/initiatives/_result.html.erb