3 files changed,
12 insertions(+),
3 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-02-20 18:53:41 +0200
Change ID:
vxqpyutnlwrzmrzwutuxlutntqnomkmz
Parent:
81b50f2
M
web/templates/repo_commit.html
@@ -15,7 +15,10 @@ {{ .stat.Deletions }} deletions(-)
</div> <div class="box"> - <pre class="commit-message">{{ .commit.Message }}</pre> + <pre class="commit-message"> + {{- if .commit.Message }}{{- .commit.Message -}} + {{- else -}}<span class="muted">Empty message</span>{{- end -}} + </pre> <div> <strong>Author:</strong> {{ .commit.AuthorName }}
M
web/templates/repo_index.html
@@ -24,7 +24,10 @@ {{ .Committed.Format "Mon, 02 Jan 2006" }}
<span class="tooltip" role="tooltip">{{ .Committed }}</span> </span> </div> - <div>{{ commitSummary .Message }}</div> + <div> + {{- if .Message }}{{- commitSummary .Message -}} + {{- else -}}<span class="muted">Empty message</span>{{- end -}} + </div> </div> {{ end }} </div>
M
web/templates/repo_log.html
@@ -21,7 +21,10 @@ <tbody>
{{ range .commits }} <tr> <td class="fill"> - <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</a> + <a href="/{{ $repo }}/commit/{{ .Hash }}"> + {{- if .Message }}{{- commitSummary .Message -}} + {{- else -}}<span class="muted">Empty message</span>{{- end -}} + </a> </td> <td class="author nowrap"> <span class="author-short">