3 files changed,
12 insertions(+),
3 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-02-20 18:53:41 +0200
Authored at:
2026-02-19 18:04:58 +0200
Change ID:
vxqpyutnlwrzmrzwutuxlutntqnomkmz
Parent:
81b50f2
M
web/templates/repo_commit.html
路路路 15 15 </div> 16 16 17 17 <div class="box"> 18 - <pre class="commit-message">{{ .commit.Message }}</pre> 18 + <pre class="commit-message"> 19 + {{- if .commit.Message }}{{- .commit.Message -}} 20 + {{- else -}}<span class="muted">Empty message</span>{{- end -}} 21 + </pre> 19 22 <div> 20 23 <strong>Author:</strong> 21 24 {{ .commit.AuthorName }}
M
web/templates/repo_index.html
路路路 24 24 <span class="tooltip" role="tooltip">{{ .Committed }}</span> 25 25 </span> 26 26 </div> 27 - <div>{{ commitSummary .Message }}</div> 27 + <div> 28 + {{- if .Message }}{{- commitSummary .Message -}} 29 + {{- else -}}<span class="muted">Empty message</span>{{- end -}} 30 + </div> 28 31 </div> 29 32 {{ end }} 30 33 </div>
M
web/templates/repo_log.html
路路路 21 21 {{ range .commits }} 22 22 <tr> 23 23 <td class="fill"> 24 - <a href="/{{ $repo }}/commit/{{ .Hash }}">{{ commitSummary .Message }}</a> 24 + <a href="/{{ $repo }}/commit/{{ .Hash }}"> 25 + {{- if .Message }}{{- commitSummary .Message -}} 26 + {{- else -}}<span class="muted">Empty message</span>{{- end -}} 27 + </a> 25 28 </td> 26 29 <td class="author nowrap"> 27 30 <span class="author-short">