Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (36 sloc) 1.6 KB
<!-- Header -->
<table class="border-b-grey w-full cell-0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<p class="mb-0 font-bold">
<a href="<%= main_url(LevelWeb.Endpoint, :index, [@digest.space.slug, "inbox"]) %>" class="text-dusty-blue-dark no-underline"><%= @digest.space.name %></a>
</p>
<h1 class="mb-2 font-bold text-xl">
<a href="<%= digest_url(LevelWeb.Endpoint, :show, @digest.space.id, @digest.id) %>" class="text-dusty-blue-darkest no-underline"><%= @digest.title %></a>
</h1>
<p class="text-dusty-blue-dark">
<span><%= digest_date(@digest) %></span>
<span class="ml-2 text-dusty-blue text-sm">@ <%= digest_time(@digest) %></span>
</p>
</td>
</tr>
</table>
<!-- Sections -->
<%= for section <- @digest.sections do %>
<%= render LevelWeb.DigestView, "_section.html", %{section: section, digest: @digest} %>
<% end %>
<!-- Pre-Footer -->
<table class="w-full cell-0 text-center" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="pt-25px">
<p class="text-dusty-blue text-xs">
Prepared for <%= display_name(@digest.space_user) %>
</p>
<p class="text-dusty-blue text-xs">
<a href="<%= digest_url(LevelWeb.Endpoint, :show, @digest.space.id, @digest.id) %>">Click here</a> to view this digest in the browser.<br/>
Times are displayed in the <%= @digest.time_zone %> time zone.<br/>
<a href="<%= main_url(LevelWeb.Endpoint, :index, [@digest.space.slug, "settings", "preferences"]) %>">Update my digest settings</a>
</p>
</td>
</tr>
</table>