diff options
author | Bwko <bouwko@gmail.com> | 2016-12-02 02:12:16 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-02 09:12:16 +0800 |
commit | 5ab85372da74bd95f7143fd59c2c600d4c9894d0 (patch) | |
tree | ed69c018ea3ee015a6854ed47f6e1d2f3ec32c99 /templates/repo/issue/view_content.tmpl | |
parent | 1ae6ccb5f1e8c6c2c0188e81de91ec50761bf436 (diff) | |
download | gitea-5ab85372da74bd95f7143fd59c2c600d4c9894d0.tar.gz gitea-5ab85372da74bd95f7143fd59c2c600d4c9894d0.zip |
Added rel="noopener" to target="_blank" hrefs (#327)
* Added rel="noopener" to target="_blank" hrefs
* Replaced gogs.io/docs with docs.gitea.io
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
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}} |