Add + and - to changes in email report

This commit is contained in:
Uku Taht 2019-09-09 12:58:57 +01:00
parent 5d2b7de30f
commit 1ee5147ffb

View File

@ -236,11 +236,11 @@ body {
</div> </div>
<% @change_visitors >= 0 -> %> <% @change_visitors >= 0 -> %>
<div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: #1f9d55;"> <div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: #1f9d55;">
<p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong><%= @change_visitors %>%</strong></p> <p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong>+<%= @change_visitors %>%</strong></p>
</div> </div>
<% @change_visitors < 0 -> %> <% @change_visitors < 0 -> %>
<div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: #ff4457;"> <div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: #ff4457;">
<p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong><%= @change_visitors %>%</strong></p> <p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong>-<%= @change_visitors %>%</strong></p>
</div> </div>
<% end %> <% end %>
</div> </div>