Sha256: d9ab06757cedea99fd707318da52f5d3227f52aa76dc4fa469d282a0c288c9e8

Contents?: true

Size: 1.67 KB

Versions: 8

Compression:

Stored size: 1.67 KB

Contents

<p class="email-greeting"><%= t(".hello", name: @user.name) %></p>

<p class="email-instructions">
  <%= t(".report_html", url: reported_content_url) %>
</p>

<br>

<p><b><%= t(".date") %></b></p>
<p><%= l @report.created_at, format: :short %></p>

<p><b><%= t(".participatory_space") %></b></p>
<p><%= link_to translated_attribute(@participatory_space.title), resource_locator(@participatory_space).url %></p>

<p><b><%= t(".reason") %></b></p>
<p><%= t(@report.reason, organization_name: @participatory_space.organization.name, scope: "decidim.shared.flag_modal") %></p>

<% if @report.details.present? %>
  <p><b><%= t(".details") %></b></p>
  <blockquote>
    <%= @report.details %>
  </blockquote>
<% end %>

<% if @original_language.present? %>
  <p><b><%= t(".content_original_language") %></b></p>
  <p><%= I18n.t("locale.name", locale: @original_language) %></p>
<% end %>

<p><b><%= t(".content") %></b> (<%= t(".id") %>: <%= @reportable.id %>)</p>
<%= reported_content_cell %>

<% if @author.present? %>
  <p><b><%= t(".authors") %></b></p>
  <% if author_profile_url.present? %>
    <p><%= link_to @author.name, author_profile_url, target: :blank %></p>
  <% else %>
    <p>
      <%=
        if @author.respond_to?(:name)
          @author.name
        elsif @author.respond_to?(:title)
          translated_attribute(@author.title)
        end
      %>
    </p>
  <% end %>
<% end %>
<br>

<table class="button radius" style="margin: 16px auto;">
  <tr>
    <td>
      <table>
        <tr>
          <td>
            <%= link_to t(".see_report"), report_url, class: "button email-button email-button__cta", target: "_blank" %>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-core-0.28.5 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.4 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.3 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.2 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.1 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.0 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.0.rc5 app/views/decidim/reported_mailer/report.html.erb
decidim-core-0.28.0.rc4 app/views/decidim/reported_mailer/report.html.erb