Sha256: d0ccb24c0fb2937407691b385fa872abdd2ab6baf6f9665c44c0fbcb66d2c756

Contents?: true

Size: 1004 Bytes

Versions: 9

Compression:

Stored size: 1004 Bytes

Contents

<% add_decidim_page_title(t(".preview")) %>
<div class="card">
  <div class="card-divider">
    <h2 class="card-title"><%= t ".preview" %></h2>
  </div>
  <div class="card-section">
    <dl>
      <dt><%= t ".subject" %></dt>
      <dd><%= @email.subject %></dd>
      <dt><%= t("models.newsletter.fields.sent_to", scope: "decidim.admin") %></dt>
      <dd><%= selective_newsletter_to newsletter %></dd>
    </dl>

    <iframe src="<%= preview_newsletter_path(@newsletter) %>" class="email-preview">
    </iframe>
  </div>
</div>
<div class="button--double form-general-submit">
  <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
    <% if  !@newsletter.sent? %>
      <%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button" %>
    <% end %>
    <% unless @newsletter.sent? %>
      <%= link_to t(".select_recipients_to_deliver"), select_recipients_to_deliver_newsletter_path(@newsletter), class: "button alert" %>
    <% end %>
  <% end %>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.27.8 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.27.7 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.27.6 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.26.10 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.26.9 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.27.5 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.26.8 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.27.4 app/views/decidim/admin/newsletters/show.html.erb