Files
Arya K 30a68263e7 Merge dev into master (#107)
Co-authored-by: Odyssium <hi@odyssey346.dev>
Co-authored-by: Midou36O <facemioo4@gmail.com>
Co-authored-by: Arya Kiran <arya@projectsegfau.lt>
Co-authored-by: Odyssium <odyssium@noreply.codeberg.org>
Co-authored-by: medanisjbara <medanisjbara@proton.me>
Co-authored-by: Midou36O <midou36o@noreply.codeberg.org>
Co-authored-by: No-Logs.com <no-logs@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/gothub/gothub/pulls/107
2023-05-08 10:24:08 +00:00

33 lines
1004 B
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}}
<a href="{{.Fullname}}" class="explore-card">
<div>
<p>{{.Fullname}}</p>
<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>
</a>
{{ end }} {{ else }}
<p>There are no trending repositories at the moment.</p>
{{ end }}
</main>
{{template "footer" .}}