summaryrefslogtreecommitdiff
path: root/app/views/projects/pages
diff options
context:
space:
mode:
authorjakeburden <jburden@gitlab.com>2019-08-26 15:43:25 -0400
committerjakeburden <jburden@gitlab.com>2019-09-02 12:11:26 -0400
commit92d5518299f000ac294000fa2f50a9e53c942865 (patch)
tree66747443e6388916fba09116f6036e4d700edde5 /app/views/projects/pages
parent14597d129fdb035b30890aa2ad5c9a0ee3e70807 (diff)
downloadgitlab-ce-92d5518299f000ac294000fa2f50a9e53c942865.tar.gz
Add attributes to open deployed pages in new tab
Diffstat (limited to 'app/views/projects/pages')
-rw-r--r--app/views/projects/pages/_access.html.haml10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/views/projects/pages/_access.html.haml b/app/views/projects/pages/_access.html.haml
index 539f223ca9b..d404580fec8 100644
--- a/app/views/projects/pages/_access.html.haml
+++ b/app/views/projects/pages/_access.html.haml
@@ -7,9 +7,15 @@
%strong
= _("Your pages are served under:")
- %p= link_to @project.pages_url, @project.pages_url
+ %p
+ = link_to @project.pages_url, target: :_blank, rel: 'noopener noreferrer' do
+ = @project.pages_url
+ = icon('external-link')
- @project.pages_domains.each do |domain|
- %p= link_to domain.url, domain.url
+ %p
+ = link_to domain.url, target: :_blank, rel: 'noopener noreferrer' do
+ = domain.url
+ = icon('external-link')
.card-footer.alert-primary
= _("It may take up to 30 minutes before the site is available after the first deployment.")