EUS/views/home/dashboard.ejs

40 lines
1.3 KiB
Text
Raw Permalink Normal View History

2025-01-06 06:53:13 +00:00
<%- 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>
2025-01-08 08:19:11 +00:00
<div class="card-body">
2025-01-26 10:34:56 +00:00
<div class="row row-cols-1">
<% for (const upload of recentUploads) { %>
<div class="col">
2025-01-26 16:40:40 +00:00
<div class="row flex-nowrap">
2025-01-26 10:34:56 +00:00
<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>
2025-01-26 16:40:40 +00:00
<div class="col"><a href="<%= domains[upload.DomainId].HasHttps ? "https" : "http" %>://<%= domains[upload.DomainId].Domain %>/<%= upload.MediaTag %>" target="_blank"><%= upload.FileName %></a></div>
2025-01-26 10:34:56 +00:00
</div>
</div>
<% } %>
</div>
2025-01-08 08:19:11 +00:00
</div>
2025-01-06 06:53:13 +00:00
</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") %>