Files
gothub/views/commit.html
T
2023-03-23 16:45:27 +05:30

30 lines
739 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>Directory not found</h2>
<p>That directory doesn't exist.</p>
{{ end }}
</main>
{{ template "footer" .}}