diff options
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/header.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/labels.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/settings/hook_gogs.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/user_cards.tmpl | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index a0e7bd1542..9b94e799a7 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -9,7 +9,7 @@ <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> - {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} + {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} </div> diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index 6462294512..eef82b80a8 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -41,13 +41,13 @@ <div class="ui centered grid"> <div class="twelve wide column eight wide computer column"> <div class="ui attached left aligned segment"> - <h4 class="ui header"> + <!-- <h4 class="ui header"> {{.i18n.Tr "repo.issues.label_templates.title"}} - <a target="_blank" + <a target="_blank" rel="noopener" href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599"> <span class="octicon octicon-question"></span> </a> - </h4> + </h4> --> <p>{{.i18n.Tr "repo.issues.label_templates.info"}}</p> <br/> <form class="ui form center" action="{{.Link}}/initialize" method="post"> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 3911059141..bbb8f4f984 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -41,7 +41,7 @@ <div class="ui bottom attached segment"> <div class="ui small images"> {{range .Issue.Attachments}} - <a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}"> + <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}"> {{if FilenameIsImage .Name}} <img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'> {{else}} @@ -102,7 +102,7 @@ <div class="ui bottom attached segment"> <div class="ui small images"> {{range .Attachments}} - <a target="_blank" href="{{AppSubUrl}}/attachments/{{.UUID}}"> + <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}"> {{if FilenameIsImage .Name}} <img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'> {{else}} diff --git a/templates/repo/settings/hook_gogs.tmpl b/templates/repo/settings/hook_gogs.tmpl index 6d73cca9d4..a8145f2789 100644 --- a/templates/repo/settings/hook_gogs.tmpl +++ b/templates/repo/settings/hook_gogs.tmpl @@ -1,5 +1,5 @@ {{if eq .HookType "gogs"}} - <p>{{.i18n.Tr "repo.settings.add_webhook_desc" "https://gogs.io/docs/features/webhook.html" | Str2html}}</p> + <p>{{.i18n.Tr "repo.settings.add_webhook_desc" "https://docs.gitea.io/features/webhook.html" | Str2html}}</p> <form class="ui form" action="{{.BaseLink}}/settings/hooks/gogs/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.ID}}{{end}}" method="post"> {{.CsrfTokenHtml}} <div class="required field {{if .Err_PayloadURL}}error{{end}}"> diff --git a/templates/repo/user_cards.tmpl b/templates/repo/user_cards.tmpl index b89bbc6834..c22caf2576 100644 --- a/templates/repo/user_cards.tmpl +++ b/templates/repo/user_cards.tmpl @@ -12,7 +12,7 @@ <div class="meta"> {{if .Website}} - <span class="octicon octicon-link"></span> <a href="{{.Website}}" target="_blank">{{.Website}}</a> + <span class="octicon octicon-link"></span> <a href="{{.Website}}" target="_blank" rel="noopener">{{.Website}}</a> {{else if .Location}} <span class="octicon octicon-location"></span> {{.Location}} {{else}} |