log: cleaner view

This commit is contained in:
Anirudh Oppiliappan 2022-12-18 12:18:43 +05:30
parent 8f8f205ce5
commit 2e3c3103c4
No known key found for this signature in database
GPG key ID: 8A93F96F78C5D4C4
3 changed files with 18 additions and 4 deletions

View file

@ -172,6 +172,10 @@ a:hover {
content: '>'; content: '>';
} }
.commit {
margin-bottom: 1rem;
}
.commit pre { .commit pre {
padding-bottom: 1rem; padding-bottom: 1rem;
white-space: pre-wrap; white-space: pre-wrap;
@ -224,6 +228,11 @@ a:hover {
gap: 1rem; gap: 1rem;
} }
.commit-info {
color: var(--gray);
font-size: 14px;
}
@media (max-width: 600px) { @media (max-width: 600px) {
.index { .index {
grid-row-gap: 0.8em; grid-row-gap: 0.8em;

View file

@ -15,10 +15,12 @@
{{ range .commits }} {{ range .commits }}
<div> <div>
<div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div> <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div>
<div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
<pre>{{ .Message }}</pre> <pre>{{ .Message }}</pre>
</div> </div>
<div class="commit-info">{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span></div> <div class="commit-info">
{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span>
<div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
</div>
{{ end }} {{ end }}
</div> </div>
</main> </main>

View file

@ -17,12 +17,15 @@
{{ range .commits }} {{ range .commits }}
<div> <div>
<div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div> <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div>
<div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
<pre>{{ .Message }}</pre> <pre>{{ .Message }}</pre>
</div> </div>
<div class="commit-info">{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span></div> <div class="commit-info">
{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span>
<div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
</div>
{{ end }} {{ end }}
</div> </div>
<article class="readme"> <article class="readme">
<pre> <pre>
{{- if .readme }}{{ .readme }}{{- end -}} {{- if .readme }}{{ .readme }}{{- end -}}