Move '(current)' label to the checkout button column
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user