mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
30 lines
733 B
HTML
30 lines
733 B
HTML
{{ template "header" .}}
|
|
|
|
<main>
|
|
<style>
|
|
// prettier-ignore
|
|
{{.css}}
|
|
pre {
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
</style>
|
|
{{ if .commit }} {{ range $key, $value := .commit}}
|
|
<div class="userProfile">
|
|
<h1>{{.CommitHashShortened}} | {{.CommitName}}</h1>
|
|
</div>
|
|
<div class="userReadme">
|
|
{{.CommitName}}
|
|
<pre>{{.CommitDesc}}</pre>
|
|
{{.CommitHashShortened}} {{.CommitDate}} {{.Commiter}} {{.CommitToBranch}}
|
|
{{.PreviousCommit}} Members: {{range .Commiter}}
|
|
<a href="/{{.}}" target="_blank">@{{.}}</a>
|
|
{{ end }}
|
|
</div>
|
|
{{end}} {{ .file}} {{ else }}
|
|
<h2>Commit not found</h2>
|
|
<p>That commit doesn't exist.</p>
|
|
{{ end }}
|
|
</main>
|
|
{{ template "footer" .}}
|