summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-09-12 09:29:35 +0200
committerLauris BH <lauris@nix.lv>2017-09-12 10:29:35 +0300
commit3fecf94086be1b5f2bddd48cebc0e1ca4702de5c (patch)
tree0840327dda0ea00a4b076cdc9f6ca0213bf646e6 /templates
parent5ccecb44adddf17e1a3ec8ae6e1ad75cb0ff94e6 (diff)
downloadgitea-3fecf94086be1b5f2bddd48cebc0e1ca4702de5c.tar.gz
gitea-3fecf94086be1b5f2bddd48cebc0e1ca4702de5c.zip
Open external wiki in new window (#2489)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 8d457e7dc4..2ed93d1d93 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -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}}