fix debug text

pull/4/merge
Matthew Hodgson 9 years ago
parent 88ea5ab2c3
commit d437882581
  1. 5
      res/templates/mail.css
  2. 4
      res/templates/notif_mail.html

@ -145,6 +145,11 @@ pre, code {
text-decoration: none; text-decoration: none;
} }
.debug {
font-size: 10px;
color: #888;
}
.footer { .footer {
margin-top: 20px; margin-top: 20px;
text-align: center; text-align: center;

@ -30,7 +30,7 @@
{% include 'room.html' with context %} {% include 'room.html' with context %}
{% endfor %} {% endfor %}
<div class="footer"> <div class="footer">
<small> <div class="debug">
Sending email at {{ reason.now|format_ts("%c") }} due to activity in room '{{ reason.room_name }}' because:<br/> Sending email at {{ reason.now|format_ts("%c") }} due to activity in room '{{ reason.room_name }}' because:<br/>
1. An event was received at {{ reason.received_at|format_ts("%c") }} 1. An event was received at {{ reason.received_at|format_ts("%c") }}
which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} (delay_before_mail_ms) mins ago.<br/> which is more than {{ "%.1f"|format(reason.delay_before_mail_ms / (60*1000)) }} (delay_before_mail_ms) mins ago.<br/>
@ -40,7 +40,7 @@
{% else %} {% else %}
2. We can't remember the last time we sent a mail for this room. 2. We can't remember the last time we sent a mail for this room.
{% endif %} {% endif %}
</small> </div>
<a href="{{ unsubscribe_link }}">Unsubscribe</a> <a href="{{ unsubscribe_link }}">Unsubscribe</a>
</div> </div>
</td> </td>

Loading…
Cancel
Save