Put push/pull buttons on one line
All checks were successful
Deploy / build (push) Successful in 49s

This commit is contained in:
2026-02-27 19:29:08 +01:00
parent 6a532322c4
commit b5097685c7

View File

@@ -6,17 +6,23 @@
<body> <body>
<h2>Staging</h2> <h2>Staging</h2>
<p>Branch: <b th:text="${branch}"></b></p> <p>Branch: <b th:text="${branch}"></b></p>
<p th:if="${commitsAhead != null}"> <table th:if="${commitsAhead != null}" border="0" cellpadding="0" cellspacing="0">
<span th:text="${commitsAhead}"></span> ahead, <span th:text="${commitsBehind}"></span> behind <tr>
<td><span th:text="${commitsAhead}"></span> ahead, <span th:text="${commitsBehind}"></span> behind</td>
<td>
<form method="post" th:action="@{/repo/{name}/push(name=${name})}"> <form method="post" th:action="@{/repo/{name}/push(name=${name})}">
<input type="hidden" name="redirectTo" value="changes"> <input type="hidden" name="redirectTo" value="changes">
<input type="submit" value="Push"> <input type="submit" value="Push">
</form> </form>
</td>
<td>
<form method="post" th:action="@{/repo/{name}/pull(name=${name})}"> <form method="post" th:action="@{/repo/{name}/pull(name=${name})}">
<input type="hidden" name="redirectTo" value="changes"> <input type="hidden" name="redirectTo" value="changes">
<input type="submit" value="Pull"> <input type="submit" value="Pull">
</form> </form>
</p> </td>
</tr>
</table>
<h3>Modified Files (unstaged)</h3> <h3>Modified Files (unstaged)</h3>
<form method="post" th:action="@{/repo/{name}/stage(name=${name})}" th:if="${!#lists.isEmpty(modifiedFiles)}"> <form method="post" th:action="@{/repo/{name}/stage(name=${name})}" th:if="${!#lists.isEmpty(modifiedFiles)}">