Changes
3 changed files (+39/-21)
-
-
@@ -245,6 +245,7 @@ }.commit-summary--message { margin: 0; margin-block-end: var(--space-xxs); padding: 0; font-size: var(--font-md); line-height: 1.2;
-
@@ -256,7 +257,7 @@ overflow: hidden;text-overflow: ellipsis; } .commit-summary--committer { .commit-summary--committer, .commit-summary--author { font-size: var(--font-xs); color: var(--color-fg-weak);
-
-
static/repo-log-ref.css (new)
-
@@ -0,0 +1,17 @@/* Copyright 2025 Shota FUJI <pockawoooh@gmail.com> * SPDX-License-Identifier: MIT */ .log-heading { margin: 0; padding-block-end: var(--space-xxl); font-size: var(--font-xl); font-weight: var(--font-chonk); line-height: 1.2; } .log-list { list-style: none; padding: 0; margin: 0; }
-
-
-
@@ -7,6 +7,7 @@ <!DOCTYPE html><html lang="en"> <head> {{ template "head" }} <link rel="stylesheet" href="/static/repo-log-ref.css" /> <title> Commit history at {{ .Meta.Ref }} - {{ .Meta.DisplayName }} </title>
-
@@ -31,16 +32,27 @@ {{ template "repo-header" . }}{{ template "repo-nav" . }} </header> <main class="main"> <h1>Commits at {{ .Meta.Ref }}</h1> <ol> <h1 class="log-heading">Commits at {{ .Meta.Ref }}</h1> <ol class="log-list"> {{- $meta := .Meta -}} {{ range .Commits -}} <li> <div> <a href="/{{ $meta.DisplayName }}/commit/{{ .Hash.String }}"> {{- slice .Hash.String 0 8 -}} <li class="commit-summary"> <a class="commit-summary--hash" href="/{{ $meta.DisplayName }}/commit/{{ .Hash.String }}"> {{- slice .Hash.String 0 8 -}} </a> <span class="commit-summary--message" title="{{- .Message -}}"> {{- .Message -}} </span> <span class="commit-summary--author"> <a href="mailto:{{ .Author.Email }}"> {{- .Author.Name -}} </a> - authored at <time datetime='{{ .Author.When.Format "2006-01-02T15:04:05-0700" }}'> {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }} </time> </span> <span class="commit-summary--committer"> <a href="mailto:{{ .Committer.Email }}"> {{- .Committer.Name -}} </a>
-
@@ -48,19 +60,7 @@ comitted at<time datetime='{{ .Committer.When.Format "2006-01-02T15:04:05-0700" }}'> {{ .Committer.When.Format "2006-01-02 15:04:05 -0700" }} </time> </div> <div> <a href="mailto:{{ .Author.Email }}"> {{- .Author.Name -}} </a> authored at <time datetime='{{ .Author.When.Format "2006-01-02T15:04:05-0700" }}'> {{ .Author.When.Format "2006-01-02 15:04:05 -0700" }} </time> </div> <pre> {{- .Message -}} </pre> </span> </li> {{- end }} </ol>
-