Skip to content

Commit c1e0459

Browse files
committed
fix
1 parent 2d1a171 commit c1e0459

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/repo/diff/section_unified.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{$file := .file}}
2-
{{$blobExcerptLink := print (or ctx.RootData.CommitRepoLink ctx.RootData.RepoLink) (Iif $.root.PageIsWiki "/wiki" "") "/blob_excerpt/" (PathEscape $.root.AfterCommitID) "?"}}
2+
{{$repoLink := or ctx.RootData.CommitRepoLink ctx.RootData.RepoLink}}
3+
{{$afterCommitID := or $.root.AfterCommitID "no-after-commit-id"}}{{/* this tmpl is also used by the PR Conversation page, so the "AfterCommitID" may not exist */}}
4+
{{$blobExcerptLink := print $repoLink (Iif $.root.PageIsWiki "/wiki" "") "/blob_excerpt/" (PathEscape $afterCommitID) "?"}}
35
<colgroup>
46
<col width="50">
57
<col width="50">

0 commit comments

Comments
 (0)