Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
30 lines
921 B
HTML
30 lines
921 B
HTML
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<title>Navigation</title>
|
|
</head>
|
|
<body>
|
|
<b>WebGit</b>
|
|
<hr>
|
|
|
|
<form method="get" action="/" target="_top">
|
|
<select name="repo">
|
|
<option value="">-- Select repo --</option>
|
|
<option th:each="r : ${repositories}" th:value="${r}" th:text="${r}" th:selected="${r == selectedRepo}"></option>
|
|
<option value="__clone__">Clone New...</option>
|
|
</select>
|
|
<br>
|
|
<input type="submit" value="Go">
|
|
</form>
|
|
|
|
<th:block th:if="${selectedRepo != null}">
|
|
<hr>
|
|
<b th:text="${selectedRepo}"></b><br>
|
|
<a th:href="@{/repo/{name}/changes(name=${selectedRepo})}" target="content">Staging</a><br>
|
|
<a th:href="@{/repo/{name}/branches(name=${selectedRepo})}" target="content">Branches</a><br>
|
|
<a th:href="@{/repo/{name}/remote(name=${selectedRepo})}" target="content">Remote</a><br>
|
|
<a th:href="@{/repo/{name}/manage(name=${selectedRepo})}" target="content">Manage</a><br>
|
|
</th:block>
|
|
|
|
</body>
|
|
</html>
|