Sha256: dcbe1ce02789c2bfb749e71595204c44068ac30f94ff6c8f3f996596ce58f7fa

Contents?: true

Size: 1.51 KB

Versions: 9

Compression:

Stored size: 1.51 KB

Contents

<p class="email-greeting"><%= @event_instance.email_greeting %></p>

<p class="email-instructions"><%= @event_instance.email_intro %></p>

<% if @event_instance.resource_path.present? && @event_instance.resource_title.present? %>
  <p class="email-button email-button__cta">
    <%= link_to @event_instance.resource_title, @event_instance.resource_url %>
  </p>
<% end %>

<% if @event_instance.try(:safe_resource_text).present? %>
  <% if @event_instance.perform_translation? %>
    <p style="font-weight: bold"><%= t(".original_text") %></p>
  <% end %>

  <blockquote>
    <p>
      <%= @event_instance.safe_resource_text %>
    </p>
  </blockquote>
<% end %>

<% if @event_instance.content_in_same_language? %>
  <p><%= t(".same_language", language: I18n.locale.to_s ) %></p>
<% elsif @event_instance.translation_missing? %>
  <p><%= t(".no_translation_available", link: @event_instance.resource_url ) %></p>
<% elsif @event_instance.perform_translation? %>
  <p style="font-weight: bold"><%= t(".translated_text") %></p>
  <blockquote>
    <p>
      <%= @event_instance.safe_resource_translated_text %>
    </p>
  </blockquote>
<% end %>

<% if @event_instance.has_button? %>
  <table class="button expanded radius">
    <tr>
      <td>
        <table>
          <tr>
            <td>
              <%= link_to @event_instance.button_text, @event_instance.button_url, target: :blank %>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

<% end %>

<p class="email-closing"><%= @event_instance.email_outro %></p>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-core-0.27.0 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.3 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.27.0.rc2 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.27.0.rc1 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.2 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.1 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.0 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.0.rc2 app/views/decidim/notification_mailer/event_received.html.erb
decidim-core-0.26.0.rc1 app/views/decidim/notification_mailer/event_received.html.erb