Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1003 B
HTML
42 lines
1003 B
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<title th:text="'Branches - ' + ${name}">Branches</title>
|
|
</head>
|
|
<body>
|
|
<h2>Branches</h2>
|
|
|
|
<h3>Branches</h3>
|
|
<table border="1" cellpadding="4" cellspacing="0">
|
|
<tr>
|
|
<th>Branch</th>
|
|
<th></th>
|
|
</tr>
|
|
<tr th:each="b : ${branches}">
|
|
<td>
|
|
<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">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Create New Branch</h3>
|
|
<form method="post" th:action="@{/repo/{name}/new-branch(name=${name})}">
|
|
<table border="0" cellpadding="4" cellspacing="0">
|
|
<tr>
|
|
<td><input type="text" name="branch" size="20"></td>
|
|
<td><input type="submit" value="Create"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|