Skip to content

Commit b2e3bbf

Browse files
committed
link to commit
1 parent 86bad44 commit b2e3bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/markup_codepreview.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="code-preview-container file-content">
22
<div class="code-preview-header">
33
<a href="{{.FullURL}}" rel="nofollow" class="tw-font-semibold">{{.FilePath}}</a>
4-
{{$link := HTMLFormat `<a href="%s/src/commit/%s" class="muted tw-font-mono tw-text-text">%s</a>` .RepoLink .CommitID (.CommitID | ShortSha) -}}
4+
{{$link := HTMLFormat `<a href="%s/commit/%s" class="muted tw-font-mono tw-text-text">%s</a>` .RepoLink .CommitID (.CommitID | ShortSha) -}}
55
{{- if eq .LineStart .LineStop -}}
66
{{ctx.Locale.Tr "repo.code_preview_line_in" .LineStart $link}}
77
{{- else -}}

0 commit comments

Comments
 (0)