Skip to content

Commit 3fecf94

Browse files
cez81lafriks
authored andcommitted
Open external wiki in new window (#2489)
1 parent 5ccecb4 commit 3fecf94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
{{end}}
8787

8888
{{if or (.Repository.UnitEnabled $.UnitTypeWiki) (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}
89-
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki">
89+
<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki" {{if (.Repository.UnitEnabled $.UnitTypeExternalWiki)}} target="_blank" {{end}}>
9090
<i class="octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}}
9191
</a>
9292
{{end}}

0 commit comments

Comments
 (0)