Add plus and minus to change pageviews

This commit is contained in:
Uku Taht 2019-09-09 15:59:38 +01:00
parent 68bc3bc5ba
commit 4991b696bf

View File

@ -278,11 +278,11 @@ body {
</div>
<% @change_pageviews >= 0 -> %>
<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_pageviews %>%</strong></p>
<p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong>+<%= @change_pageviews %>%</strong></p>
</div>
<% @change_pageviews < 0 -> %>
<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_pageviews %>%</strong></p>
<p style="font-size: 12px; line-height: 14px; text-align: left; margin: 0;"><strong>-<%= @change_pageviews %>%</strong></p>
</div>
<% end %>
</div>