openSNP/snpr

View on GitHub
app/views/layouts/user_mailer.html.erb

Summary

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

    <% if @user.present?%>
    <b>Dear <%=@user.name%>,</b>
    <% else %>
    <b>Dear openSNP-user,</b>
      <%end%>

    <%= yield %>
<p>
    Cheers,<br/>
    the openSNP team
</p>

    <p>
      --
      <br/>

      <%if @optout.present?%>
        <%if @optout == "newsletter"%>
          You're receiving this email as your openSNP-settings say that you're okay with getting some emails from the openSNP-team.
          <a href="https://opensnp.org/users/<%=@user.id%>/edit#notifications">You can change this setting really easily on the website</a></br></br>
        <%else%>
          You received this email because you enabled the notifications for website updates. <a href="https://opensnp.org/users/<%=@user.id%>/edit#notifications">You can easily change these on the website</a>.</br></br>
        <%end%>
      <%end%>


      openSNP thanks <a href="https://www.patreon.com/openSNP">our Patreons</a> for supporting our
      hosting costs. Join them or <a href="https://dnageeks.com/search?q=opensnp&aff=6">buy a shirt/mug</a> to support us with our hosting costs.
    </p>
  </body>
</html>