rubygems/rubygems.org

View on GitHub
app/views/mailer/notifiers_changed.html.erb

Summary

Maintainability
Test Coverage
<% @title = t(".title") %>
<% @sub_title = t(".subtitle", handle: @user.handle) %>

<!-- Body -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
  <tr>
    <td class="content-spacing" style="font-size:0pt; line-height:0pt; text-align:left" width="20"></td>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%"><tr><td height="35" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%">&nbsp;</td></tr></table>

      <div class="h3-1-center" style="color:#1e1e1e; font-family:Georgia, serif; min-width:auto !important; font-size:20px; line-height:26px;">
        <p>
          This email confirms that you successfully changed your email notification settings on RubyGems.org.
        </p>
        <p>
          Here are your email notification settings for each gem you are responsible for:
        </p>
        <ul>
          <% @ownerships.each do |ownership| %>
            <li>
              <%= ownership.rubygem.name %> emails:
              <ul>
                <li>Gem Push Notifications: <%= ownership.push_notifier? ? t("mailer.notifiers_changed.on") : t("mailer.notifiers_changed.off_html") %></li>
                <li>Ownership Notifications: <%= ownership.owner_notifier? ? t("mailer.notifiers_changed.on") : t("mailer.notifiers_changed.off_html") %></li>
              </ul>
            </li>
          <% end %>
        </ul>
        <p>If this change to your settings is expected, you do not need to take further action.</p>
        <p>
          <strong>Only if this change to your settings is unexpected</strong>
          please take immediate steps to secure your account and gems:
        </p>

        <%= render "compromised_instructions" do %>
          <li><%= link_to("Renable email notification for your gem", notifier_url) %></li>
          <li>Look out for unexpected changes to your gems on RubyGems.org</li>
        <% end %>

      </div>

      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%"><tr><td height="30" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%">&nbsp;</td></tr></table>

      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%"><tr><td height="35" class="spacer" style="font-size:0pt; line-height:0pt; text-align:center; width:100%; min-width:100%">&nbsp;</td></tr></table>

    </td>
    <td class="content-spacing" style="font-size:0pt; line-height:0pt; text-align:left" width="20"></td>
  </tr>
</table>