mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
add support for viewing commit changes (with a horrible commit ui for now)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{{ 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" .}}
|
||||
Reference in New Issue
Block a user