Skip to content

Commit 49c3fa5

Browse files
committed
Improve email styling
1 parent 35e4051 commit 49c3fa5

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

lib/plausible_web/templates/email/spike_notification.html.eex

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
There are currently <%= @current_visitors %> visitors on <%= @site.domain %>.
1+
There are currently <%= @current_visitors %> visitors on <%= link(@site.domain, to: "https://" <> @site.domain) %>.
22
<br />
33
<br />
44
The top 3 sources for current visitors:<br />
5-
<table cellpadding="0" cellspacing="0" width="640" align="center" border="1">
6-
<tr>
7-
<td>
8-
<table cellpadding="0" cellspacing="0" width="640" align="left" border="1">
9-
<%= for %{"name" => source, "count" => visitors} <- @sources do %>
10-
<tr>
11-
<td><%= source %><td>
12-
<td><%= visitors %></td>
13-
</tr>
14-
<% end %>
15-
</table>
16-
</td>
17-
</tr>
5+
6+
<table width="100%" cellpadding="0" cellspacing="0" style="max-width: 400px;">
7+
<thead>
8+
<tr>
9+
<th scope="col"><b>Page</b></th>
10+
<th scope="col"><b>Visitors</b></th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
<%= for %{"name" => source, "count" => visitors} <- @sources do %>
15+
<tr>
16+
<td valign="top"><%= source %></td>
17+
<td valign="top"><%= visitors %></td>
18+
</tr>
19+
<% end %>
20+
</tbody>
1821
</table>
22+
1923
<%= if @link do %>
20-
View dashboard: @link
24+
<br /><br />
25+
View dashboard: @link
2126
<% end %>
2227
<br /><br />
2328
--

0 commit comments

Comments
 (0)