Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
fix: repo variable in dir template
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho authored Dec 30, 2020
1 parent 392a1f5 commit ddc4a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmpl/dir.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ <h1>Index of {{ .Ref.FilePath }}/ on {{ .Ref.Type }} <i>{{ .Ref.Name }}</i></h1>
<h2>Git Remote: {{ .Ref.Client.CurrentRepo.Url }}</h2>
<hr>
<pre>
{{ if ne .Ref.FilePath "" }}<a href="/{{ JoinPaths $repo.Slug $.Ref.Type $.Ref.Name }}/-/{{ .ParentPath }}">../</a>{{ end }}
{{ range $value := .Files }}<a href="/{{ JoinPaths $repo.Slug $.Ref.Type $.Ref.Name }}/-/{{ JoinPaths $.Ref.FilePath . }}">{{ . }}<br></a>{{ end }}
{{ if ne .Ref.FilePath "" }}<a href="/{{ JoinPaths $.Ref.Client.CurrentRepo.Slug $.Ref.Type $.Ref.Name }}/-/{{ .ParentPath }}">../</a>{{ end }}
{{ range $value := .Files }}<a href="/{{ JoinPaths $.Ref.Client.CurrentRepo.Slug $.Ref.Type $.Ref.Name }}/-/{{ JoinPaths $.Ref.FilePath . }}">{{ . }}<br></a>{{ end }}
</pre>
<hr>
</body></html>

0 comments on commit ddc4a70

Please sign in to comment.