From 92d5518299f000ac294000fa2f50a9e53c942865 Mon Sep 17 00:00:00 2001 From: jakeburden Date: Mon, 26 Aug 2019 15:43:25 -0400 Subject: Add attributes to open deployed pages in new tab --- app/views/projects/pages/_access.html.haml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/views/projects') 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.") -- cgit v1.2.1