2022-11-30 23:08:16 +09:00
|
|
|
{{ template "header" .}}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{{ if .repo }}
|
|
|
|
{{ range $key, $value := .repo}}
|
|
|
|
<div class="buttonParent">
|
2022-12-11 05:05:30 +09:00
|
|
|
<a href="/download/{{.Fullname}}/{{.DefaultBranch}}" class="button">Download (zip)</a>
|
|
|
|
<a href="https://github.com/{{.Fullname}}" class="button">View on GitHub</a>
|
2022-11-30 23:08:16 +09:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="userProfile">
|
|
|
|
<h1>{{.Fullname}}</h1>
|
2023-02-14 23:54:33 +09:00
|
|
|
{{ if .Parent }}
|
2022-11-30 23:08:16 +09:00
|
|
|
<p>This repository is a fork of <a href="/{{.Parent}}">{{.Parent}}</a>.</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Description }}
|
|
|
|
<p>{{.Description}}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .License }}
|
2023-02-15 00:21:44 +09:00
|
|
|
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ {{.License}} 🌿 {{.DefaultBranch}}</p>
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ else }}
|
2023-02-15 00:21:44 +09:00
|
|
|
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ No license 🌿 {{.DefaultBranch}}</p>
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ end }}
|
2023-02-15 00:21:44 +09:00
|
|
|
{{ if .Language }}
|
|
|
|
<p>🗒️
|
|
|
|
{{range .Language}}
|
|
|
|
{{.}}
|
|
|
|
{{end}}
|
|
|
|
</p>
|
|
|
|
{{end}}
|
2022-11-30 23:08:16 +09:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-12-01 01:37:27 +09:00
|
|
|
{{ if .files}}
|
2022-11-30 23:08:16 +09:00
|
|
|
<div class="userReadme">
|
|
|
|
<h3>Files</h3>
|
|
|
|
<div class="userReadmeText">
|
2022-12-01 01:37:27 +09:00
|
|
|
<ul class="filesUList">
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ range $key, $value := .files}}
|
2022-12-01 01:37:27 +09:00
|
|
|
{{ if eq .Type "dir" }}
|
2022-12-01 02:47:35 +09:00
|
|
|
<li class="filesList"><a href="#" class="filesA">{{.Path}} (directory)</a></li>
|
2022-12-01 01:37:27 +09:00
|
|
|
{{ else }}
|
2023-02-14 02:40:55 +09:00
|
|
|
<li class="filesList"><a href="/{{.Fullname}}/tree/{{.DefaultBranch}}/{{.Path}}">{{.Path}}</a></li>
|
2022-12-01 01:37:27 +09:00
|
|
|
{{ end }}
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-01 01:37:27 +09:00
|
|
|
{{ end }}
|
|
|
|
{{ if .readme}}
|
|
|
|
<div class="userReadme">
|
2023-02-14 23:54:33 +09:00
|
|
|
{{ if .repo }}
|
|
|
|
{{ range $key, $value := .repo}}
|
|
|
|
<h3>{{.Readme}}</h3>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-12-01 01:37:27 +09:00
|
|
|
<div class="userReadmeText">
|
|
|
|
{{ unescape .readme}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ else }}
|
|
|
|
<h2>Repository not found</h2>
|
|
|
|
<p>That repository doesn't exist.</p>
|
|
|
|
{{ end }}
|
2023-02-14 23:54:33 +09:00
|
|
|
</main>
|
2023-03-08 01:00:33 +09:00
|
|
|
</body>
|
|
|
|
</html>
|