<p>The following users had changes to their superuser and staff statuses (changes in RED):</p>

<table>
  <tbody>
    <tr>
      <td>Users</td>
      <td>is Superuser</td>
      <td>is Staff</td>
    </tr>
    {% for user in user_changes %}
      <tr>
        <td>{{ user.email }}</td>
        {% if 'is_staff' in user %}
          <td style="color:red">{{ user.is_staff }}</td>
        {% elif 'same_staff' in user %}
          <td>{{ user.same_staff }}</td>
        {% endif %}
        {% if 'is_superuser' in user %}
          <td style="color:red">{{ user.is_superuser }}</td>
        {% elif 'same_superuser' in user %}
          <td>{{ user.same_superuser }}</td>
        {% endif %}
      </tr>
    {% endfor %}
    </tbody>
</table>

<p>You've been sent this email because you are a Django Admin.</p>

<p>The following users had changes to their superuser and staff statuses:</p>

<table>
  <tbody>
    <tr>
      <td><u>Users</u></td>
      <td><u>is Staff</u></td>
      <td><u>is Superuser</u></td>
    </tr>
    {% for user in user_changes %}
      <tr>
        <td>{{ user.email }}</td>
        {% if 'is_staff' in user %}
          <td><s>{{ user.is_staff|yesno:"False,True" }}</s> -> <b>{{ user.is_staff }}</b></td>
        {% elif 'same_staff' in user %}
          <td>{{ user.same_staff }}</td>
        {% endif %}
        {% if 'is_superuser' in user %}
          <td><s>{{ user.is_superuser|yesno:"False,True" }}</s> -> <b>{{ user.is_superuser }}</b></td>
        {% elif 'same_superuser' in user %}
          <td>{{ user.same_superuser }}</td>
        {% endif %}
      </tr>
    {% endfor %}
    </tbody>
</table>

<p>You've been sent this email because you are a Django Admin.</p>

<style type="text/css">
    td {
      padding-right: 20px;
    }
</style>

Change HTML email template formatting
Change HTML email template formatting
