We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2b93d commit 7210f23Copy full SHA for 7210f23
templates/repo/view_file.tmpl
@@ -1,4 +1,4 @@
1
-<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
+<div {{if .ReadmeInList}}id="readme" {{end}}class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
2
{{- if .FileError}}
3
<div class="ui error message">
4
<div class="text left gt-whitespace-pre">{{.FileError}}</div>
@@ -13,7 +13,7 @@
13
<div class="file-header-left gt-df gt-ac gt-py-3 gt-pr-4">
14
{{if .ReadmeInList}}
15
{{svg "octicon-book" 16 "gt-mr-3"}}
16
- <strong>{{.FileName}}</strong>
+ <strong><a class="default-link muted" href="#readme">{{.FileName}}</a></strong>
17
{{else}}
18
{{template "repo/file_info" .}}
19
{{end}}
0 commit comments