Lindenii Project Forge
Commit info | |
---|---|
ID | a758d8c13c83e9a664ddf75b97a459bca65dc30a |
Author | Runxi Yu<me@runxiyu.org> |
Author date | Tue, 11 Feb 2025 19:29:44 +0800 |
Committer | Runxi Yu<me@runxiyu.org> |
Committer date | Tue, 11 Feb 2025 19:29:44 +0800 |
Actions | Get patch |
repo_commit: Add commit message
html { font-family: sans-serif; background-color: var(--background-color); color: var(--text-color); --background-color: hsl(0, 0%, 100%); --text-color: hsl(0, 0%, 0%); --link-color: hsl(320, 50%, 36%); --light-text-color: hsl(0, 0%, 45%); --darker-border-color: hsl(0, 0%, 72%); --lighter-border-color: hsl(0, 0%, 85%); --text-decoration-color: hsl(0, 0%, 72%); --darker-box-background-color: hsl(0, 0%, 92%); --lighter-box-background-color: hsl(0, 0%, 95%); } @media (prefers-color-scheme: dark) { html { --background-color: hsl(0, 0%, 0%); --text-color: hsl(0, 0%, 100%); --link-color: hsl(320, 50%, 76%); --light-text-color: hsl(0, 0%, 78%); --darker-border-color: hsl(0, 0%, 35%); --lighter-border-color: hsl(0, 0%, 25%); --text-decoration-color: hsl(0, 0%, 30%); --darker-box-background-color: hsl(0, 0%, 20%); --lighter-box-background-color: hsl(0, 0%, 15%); } } html, code, pre { font-size: 1rem; /* TODO: Not always correct */ } footer { margin-top: 1rem; margin-left: auto; margin-right: auto; display: block; padding: 0 5px; width: fit-content; text-align: center; color: var(--light-text-color); } footer a:link, footer a:visited { color: inherit; } .padding-wrapper { margin: 1rem auto; max-width: 60rem; padding: 0 5px; } .padding-wrapper > * { width: 100%; } .padding-wrapper > table { width: 100%; } a:link, a:visited { text-decoration-color: var(--text-decoration-color); color: var(--link-color); } code:not(pre > code) { background-color: var(--lighter-box-background-color); border-radius: 2px; padding: 2px; } table { border: var(--lighter-border-color) solid 1px; border-spacing: 0px; border-collapse: collapse; } td, th { padding: 3px 5px; border: var(--lighter-border-color) solid 1px; } th { background-color: var(--lighter-box-background-color); } th[scope=row] { text-align: left; } tr.title-row > th { background-color: var(--darker-box-background-color); }
td > pre { margin: 0; }
.commit-id { font-family: monospace; }
{{- define "repo_commit" -}} <!DOCTYPE html> <html lang="en"> <head> {{ template "head_common" . }} <title>{{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-commit"> <div class="padding-wrapper"> <table id="commit-info-table"> <thead> <tr class="title-row">
<th colspan="2">Commit {{ .commit_id }}</th>
<th colspan="2">Commit Info</th>
</tr> </thead> <tbody>
<tr> <th scope="row">ID</th> <td>{{ .commit_id }}</td> </tr>
<tr> <th scope="row">Author</th> <td>{{ .commit_object.Author.Name }} <<a href="mailto:{{ .commit_object.Author.Email }}">{{ .commit_object.Author.Email }}</a>></td> </tr> <tr> <th scope="row">Author Date</th> <td>{{ .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</td> </tr> <tr> <th scope="row">Committer</th> <td>{{ .commit_object.Committer.Name }} <<a href="mailto:{{ .commit_object.Committer.Email }}">{{ .commit_object.Committer.Email }}</a>></td> </tr> <tr> <th scope="row">Committer Date</th> <td>{{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</td>
</tr> <tr> <th scope="row">Message</th> <td><pre>{{ .commit_object.Message }}</pre></td>
</tr> </tbody> </table> <pre>{{ .patch }}</pre> <p> </p> </div> <footer> {{ template "footer" . }} </footer> </body> </html> {{- end -}}