Files
gothub/views/commit.html
T

31 lines
743 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" .}}