gothub/views/explore.html
Odyssey e01ee8ecdc pretty much everything so far
Signed-off-by: Odyssey <odyssey346@disroot.org>
2022-11-05 20:34:34 +01:00

29 lines
1.0 KiB
HTML

{{template "header" .}}
<main>
<h2>Trending repositories</h2>
<p><b>25</b> repositories shown, sorted by most stars.</p>
{{ if .repos}}
{{ range $key, $value := .repos}}
<div class="exploreIDontKnowWhatToNameThisDiv">
<a href="{{ .HtmlUrl }}">{{ .Fullname }}</a>
<p>{{.Description}}</p>
{{ if .Language }}
{{ if .License }}
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ {{.License}} 🗒️ {{.Language}}</p>
{{ else }}
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ No license 🗒️ {{.Language}}</p>
{{ end }}
{{ else }}
{{ if .License }}
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ {{.License}}</p>
{{ else }}
<p>⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ No license</p>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ else }}
<p>There are no trending repositories at the moment.</p>
{{ end }}
</main>