Sha256: 4ec398c9d83157b07a6b84583b6a84a357e4208061983d7f732578d1b415480b

Contents?: true

Size: 1.54 KB

Versions: 4

Compression:

Stored size: 1.54 KB

Contents

<% add_decidim_page_title(t(".preview")) %>
<div class="item_show__header">
  <h1 class="item_show__header-title !w-1/2">
    <%= t ".preview" %>
  </h1>
  <div class="flex ml-auto items-center gap-x-4">
    <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
      <%= link_to t(".send_me_a_test_email"), send_to_user_newsletter_path(@newsletter), class: "button button__sm button__secondary hollow", method: :post %>
    <% end %>
    <% unless @newsletter.sent? %>
      <%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button button__sm button__secondary" %>
    <% end %>
  </div>
</div>
<div class="item__edit-form">
  <div class="card">
    <div class="card-section">
      <dl>
        <dt class="font-bold"><%= t ".subject" %></dt>
        <dd><%= @email.subject %></dd>
        <dt class="font-bold"><%= 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 w-full h-[60lvh]">
      </iframe>
    </div>
  </div>
  <div class="item__edit-sticky">
    <div class="item__edit-sticky-container">
      <% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
        <% unless @newsletter.sent? %>
          <%= link_to t(".select_recipients_to_deliver"), select_recipients_to_deliver_newsletter_path(@newsletter), class: "button button__sm button__secondary alert" %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-admin-0.28.4 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.28.3 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.28.2 app/views/decidim/admin/newsletters/show.html.erb
decidim-admin-0.28.1 app/views/decidim/admin/newsletters/show.html.erb