gitlin/views/explore.html
Odyssey a9105ac80b Add repo page
Signed-off-by: Odyssey <odyssey346@disroot.org>
2022-11-30 15:08:16 +01:00

29 行
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="/{{.Fullname}}">{{ .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>