Browse Source

Open external wiki in new window (#2489)

tags/v1.3.0-rc1
Jonas Östanbäck Lauris BH 7 years ago
parent
commit
0d94e9293a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/header.tmpl

+ 1
- 1
templates/repo/header.tmpl View File

@@ -86,7 +86,7 @@
{{end}}

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


Loading…
Cancel
Save