newsbox/templates/profiles/show.plush.html
Adriano Caloiaro 8ae801ae5f
Initial commit
2023-02-15 08:57:48 -08:00

30 lines
1.2 KiB
HTML

<div class="py-4 mb-2 text-start">
<h3 class="d-inline-block">Profile</h3>
<div class="float-end">
<%= linkTo(editProfilePath({ profile_id: user.ID }), {class: "btn btn-warning", body: "Edit"}) %>
</div>
<p>Newsbox Email: <input class="form-control-lg" id="newsbox-email-address" value="<%= user.Username %>@<%=site_domain
%>" disabled></input>&nbsp;
<button class="btn btn-primary"
onclick="copyToClipboard('newsbox-email-address')">Copy</button>
</p>
<p>Name: <strong><%= user.Name %></strong></p>
<p>Email:
<%= if (user.Email.Interface() == "") { %>
<span class="alert alert-warning alert-sm" role="alert">
<strong>Your must add an email address to receive mail</strong>
</span>
<% } else { %>
<strong><%= user.Email %></strong>
<% } %>
</p>
<p>Delivery time: <strong><%= delivery_time %>:00&nbsp;<%=delivery_time_zone %></strong></p>
</div>
<ul class="list-group mb-2 ">
</ul>