all repos — legit @ 2e3c3103c48c748ccc8fa6b3607d51f112a9400f

legit - simple git web interface in go (fork)

log: cleaner view
Anirudh Oppiliappan x@icyphox.sh
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEE/huPz+bBYiLxVxyOipP5b3jF1MQFAmOeuA0ACgkQipP5b3jF
1MQb/gf/VOjG1xr+skDFXZYZxCdB7XdcfDBanjnlARK4FDkKnovlpBE7XdXJbhn5
/SuGW0NtOazamLoZ3KNOQUa8E5YZ9N0h7zwD3lSo2HpBH0AxkEZ/P4Ab5aiE6xGa
BupeIbwjlKAIKceZTWbb5LAZ9YHUH1JbuCXEu3rMgZiv2/+jfDVRcfEKLghnD6A9
2qyEVSLBXBobJxM4QubuZEweUq4tXDIMfSbHvrojvg8afCrw3tYrPxmpcBEcLopL
JX2qoVY8mLB8ylN+KHm6jBp1I/rCSnx5+Gc4ufzcquxdKblUuxJ7LUZ7XDJIkbcY
HwaAEUdRDY5P91148t8VgBOAW3o0LQ==
=ODMT
-----END PGP SIGNATURE-----
commit

2e3c3103c48c748ccc8fa6b3607d51f112a9400f

parent

8f8f205ce5c806d0753b76de1dc0e2e135578437

3 files changed, 18 insertions(+), 4 deletions(-)

jump to
M static/style.cssstatic/style.css

@@ -172,6 +172,10 @@ .commit-email:after {

content: '>'; } +.commit { + margin-bottom: 1rem; +} + .commit pre { padding-bottom: 1rem; white-space: pre-wrap;

@@ -222,6 +226,11 @@ display: flex;

flex-direction: row; grid-template-columns: 1rem minmax(0, 1fr); gap: 1rem; +} + +.commit-info { + color: var(--gray); + font-size: 14px; } @media (max-width: 600px) {
M templates/log.htmltemplates/log.html

@@ -15,10 +15,12 @@ <div class="log">

{{ range .commits }} <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> </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 }} </div> </main>
M templates/repo.htmltemplates/repo.html

@@ -17,12 +17,15 @@ <div class="log">

{{ range .commits }} <div> <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}">{{ slice .Hash.String 0 8 }}</a></div> + <pre>{{ .Message }}</pre> + </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> - <pre>{{ .Message }}</pre> </div> - <div class="commit-info">{{ .Author.Name }} <span class="commit-email">{{ .Author.Email }}</span></div> {{ end }} </div> + <article class="readme"> <pre> {{- if .readme }}{{ .readme }}{{- end -}}