coopdevs/timeoverflow

View on GitHub
app/views/organization_notifier/recent_posts.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
  </head>
  <body>

    <% if @offers.present? %>
      <p>
        <%= t("organization_notifier.recent_posts.text1") %>
      </p>
      <ul>
      <% @offers.each do |offer| %>
        <li>
          <a href="<%= offer_url(offer.id)%>">
            <%= "#{offer.title} (#{offer.try(&:category_name)})" %>
          </a>
        </li>
      <% end %>
      </ul>
    <% end %>

    <% if @inquiries.present? %>
      <p>
        <%= t("organization_notifier.recent_posts.text2") %>
      </p>
      <ul>
      <% @inquiries.each do |inquiry| %>
        <li>
          <a href="<%= inquiry_url(inquiry.id)%>">
            <%= "#{inquiry.title} (#{inquiry.try(&:category_name)})" %>
          </a>
        </li>
      <% end %>
      </ul>
    <% end %>

    --
    <p>
      <%= t("mailers_globals.footer.text", organization_name: @organization_name) %>
      <a href="<%= root_url %>">
        TimeOverflow
      <a>
      <br />
      <em><%= t("mailers_globals.footer.text_donation", href: link_to(t("mailers_globals.footer.text_donation_link"), "https://www.teaming.net/poreldesarrollodelosbancosdetiempo")).html_safe %></em>
    </p>
  </body>
</html>