Move '(current)' label to the checkout button column

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-27 09:20:24 +01:00
parent 6efb8f1607
commit ba3bf697f0

View File

@@ -14,10 +14,11 @@
</tr>
<tr th:each="b : ${branches}">
<td>
<b th:if="${b == currentBranch}" th:text="${b} + ' (current)'"></b>
<b th:if="${b == currentBranch}" th:text="${b}"></b>
<span th:unless="${b == currentBranch}" th:text="${b}"></span>
</td>
<td>
<span th:if="${b == currentBranch}">(current)</span>
<form th:unless="${b == currentBranch}" method="post" th:action="@{/repo/{name}/checkout(name=${name})}">
<input type="hidden" name="branch" th:value="${b}">
<input type="submit" value="Checkout">