tools/module/gitea/pages/index.go.html
2022-04-04 22:07:15 +01:00

52 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gitea | Melon Tools</title>
<style>
.page-content {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-wrap: wrap;
}
</style>
</head>
<body>
<h1>Gitea | Melon Tools</h1>
<div class="page-content">
<div>
<p>Select repository source:</p>
<ul>
<li>
<a href="?org={{.Username}}">{{.Username}} (my user account)</a>
</li>
{{range .Orgs}}
<li>
<a href="?org={{.Name}}">{{.Name}}</a>
</li>
{{end}}
</ul>
</div>
{{if .ShowOrg}}
<div>
<p>Select repository:</p>
<ul>
{{range .Repos}}
<li>
<a href="?org={{$.SelOrg}}&repo={{.Name}}">{{$.SelOrg}}/{{.Name}}</a>
</li>
{{end}}
</ul>
</div>
{{end}}
{{if .ShowRepo}}
<div>
<p>Repository details:</p>
<p>Go import: go get {{.SelModule}}@v0.0.0-{{.CommitTime}}-{{.CommitHash}}</p>
</div>
{{end}}
</div>
</body>
</html>