nm3clol-express-app/views/directory.ejs

63 lines
2.4 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<title><%=h.getDirectoryTitle({directory})%></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body onload="initPage()">
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
<header>
<h1 class="mt-5" style="font-family: 'Covered By Your Grace'">
<% paths.forEach(function(value, index) { %>
<% if (h.shouldShowDirectorySeparator({index})) { %>
<span class="separator">&rsaquo; </span>
<% } %>
<% if (h.shouldShowWelcomeBanner({paths})) { %>
<i>&nbsp;</i>
<%= h.getWelcomeBanner() %>
<% } else if (h.shouldOmitLinkOnLastBreadcrumb({paths, index})) { %>
<%= h.trimSlashes({path: value.name}).replaceAll('_', ' ') %>
<% } else { %>
<a href="/<%= value.url %>">
<%= h.getDirectoryName({directory: value.name}).replaceAll('_', ' ') %>
</a>
<% } %>
<% }); %>
</h1>
</header>
<% if (h.directoryContainsReadme({directory})) {%>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
<%- h.printReadme({directory}) %>
</div>
</div>
<% } %>
<ul id="files" class="list-group shadow-lg">
<% files.forEach(function(value, index) { %>
<li class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<a href="<%= value.relative %>" title="<%= value.title %>" class="<%= value.type %> <%= value.ext %>"><%= value.base %></a>
</div>
</li>
<% }); %>
</ul>
</main>
<%- include('./includes/bottom-navbar.ejs') %>
<!-- Bootstrap JS (optional, if you need Bootstrap JS features) -->
<script src="https://daball.me/vendor/jquery/jquery.min.js"></script>
<script src="https://daball.me/vendor/popper.js/dist/popper.min.js"></script>
<script src="https://daball.me/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="https://daball.me/vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="https://daball.me/layouts/blog/js/blog.min.js"></script>
</body>
</html>