40 lines
No EOL
1.3 KiB
Text
40 lines
No EOL
1.3 KiB
Text
<%- include("../base/header", { title: "Home", session }) %>
|
|
|
|
<div class="row">
|
|
<!-- Recent Uploads -->
|
|
<div class="col">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col text-start">Recent Uploads</div>
|
|
<div class="col text-end"><a aria-label="View All Uploads" href="/imagelist">View All >></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row row-cols-1">
|
|
<% for (const upload of recentUploads) { %>
|
|
<div class="col">
|
|
<div class="row flex-nowrap">
|
|
<div class="col-auto">
|
|
<% if (upload.MediaType.startsWith("image/")) { %>
|
|
<img src="<%= domains[upload.DomainId].HasHttps ? "https" : "http" %>://<%= domains[upload.DomainId].Domain %>/<%= upload.MediaTag %>" height="30" width="50">
|
|
<% } %>
|
|
</div>
|
|
<div class="col"><a href="<%= domains[upload.DomainId].HasHttps ? "https" : "http" %>://<%= domains[upload.DomainId].Domain %>/<%= upload.MediaTag %>" target="_blank"><%= upload.FileName %></a></div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Stats -->
|
|
<div class="col">
|
|
<div class="card">
|
|
<div class="card-header">Stats</div>
|
|
<div class="card-body"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%- include("../base/footer") %> |