interface with db

This commit is contained in:
2025-01-12 01:14:50 -05:00
parent f02676ba2e
commit 07ab1fb40d
13 changed files with 366 additions and 29 deletions

View File

@@ -8,17 +8,18 @@
<body class="preload">
<%- include("navigation", locals) %>
<div class="content">
<h1>Start a build</h1>
<form action="/build" method="post" class="grid-2col">
<label for="repoTxt">Repo</label> <input type="text" name="repo" id="repoTxt" required />
<label for="commitTxt">Commit</label> <input type="text" name="commit" id="commitTxt" />
<label for="distroTxt">Distro</label>
<select name="distro" id="distroTxt" required>
<option value="arch">Arch</option>
<option value="artix">Artix</option>
</select>
<div class="span-2"><button type="submit">Build</button></div>
</form>
<h1>Build #<%= build.id %></h1>
<h2><%= build.status %></h2>
<div class="grid-2col">
<label>Repo</label> <span><%= build.repo %></span>
<label>Commit</label> <span><% if (build.commit) { %><%= build.commit %><% } else { %>latest<% } %></span>
<label>Patch</label> <span><% if (build.patch) { %><a href="/build/<%= build.id %>/patch">patch file</a><% } else { %>none<% } %></span>
<label>Distro</label> <span><%= build.distro %></span>
<label>Start time</label> <span><%= build.startTime %></span>
</div>
<p><a href="/build/<%= build.id %>/logs">Full logs</a></p>
<div class="logs">
</div>
</div>
</body>
</html>