1 files changed,
4 insertions(+),
5 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-03-12 13:50:45 +0200
Authored at:
2026-03-11 21:36:15 +0200
Change ID:
xyxxwxkvskylxlmtloslzouorupkzpoz
Parent:
e2e58a6
M
web/templates/repo_commit.html
ยทยทยท 97 97 <div class="diff"> 98 98 {{ template "_diff_type" . }} 99 99 100 - {{ if .IsNew }}<a href="/{{ $.RepoName }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>{{ else }} 101 - {{ if $parent }}<a href="/{{ $.RepoName }}/blob/{{ $parent }}/{{ .Name.New }}">{{ .Name.New }}</a> 102 - {{ else }}{{ .Name.Old }}{{ end }} 103 - {{ if .IsRename }}→<a href="/{{ $.RepoName }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>{{ end }} 104 - {{ end }} 100 + {{ $name := .Name.New }}{{ $hash := $this }} 101 + {{ if or .IsDelete .IsRename }}{{ $name = .Name.Old }}{{ $hash = $parent }}{{ end }} 102 + {{ if $hash }}<a href="/{{ $.RepoName }}/blob/{{ $hash }}/{{ $name }}">{{ $name }}</a>{{ else }}{{ $name }}{{ end }} 103 + {{ if .IsRename }} → <a href="/{{ $.RepoName }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>{{ end }} 105 104 106 105 {{ if .IsBinary }}<p>Not showing binary file.</p> 107 106 {{ else }}