tools/module/gitea/pages/index.go.html

61 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2022-03-28 21:22:34 +01:00
<html lang="en-GB">
<head>
2022-04-04 22:07:15 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gitea | Melon Tools</title>
2022-03-26 00:26:20 +00:00
<style>
2022-04-05 09:15:50 +01:00
html, body {
background-color: #2a2c2d;
color: #d8d4d0;
}
a {
color: #4699fa;
}
2022-03-26 00:26:20 +00:00
.page-content {
display: flex;
flex-direction: row;
align-items: flex-start;
2022-04-04 22:07:15 +01:00
flex-wrap: wrap;
2022-03-26 00:26:20 +00:00
}
</style>
</head>
<body>
<h1>Gitea | Melon Tools</h1>
2022-03-26 00:26:20 +00:00
<div class="page-content">
<div>
<p>Select repository source:</p>
<ul>
<li>
<a href="?org=$me">{{.Username}} (my user account)</a>
2022-03-26 00:26:20 +00:00
</li>
{{range .Orgs}}
<li>
<a href="?org={{.Name}}">{{.Name}}</a>
</li>
{{end}}
</ul>
</div>
{{if .ShowOrg}}
<div>
<p>Select repository:</p>
<ul>
{{range .Repos}}
2022-04-04 22:07:15 +01:00
<li>
2022-04-12 10:01:09 +01:00
<a href="?org={{$.SelOrg}}&repo={{.Name}}">{{$.MyOrg}}/{{.Name}}</a>
2022-04-04 22:07:15 +01:00
</li>
2022-03-26 00:26:20 +00:00
{{end}}
</ul>
</div>
{{end}}
{{if .ShowRepo}}
<div>
<p>Repository details:</p>
2022-03-26 11:43:55 +00:00
<p>Go import: go get {{.SelModule}}@v0.0.0-{{.CommitTime}}-{{.CommitHash}}</p>
2022-03-26 00:26:20 +00:00
</div>
{{end}}
</div>
</body>
</html>