diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-07-28 14:42:51 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-07-30 11:42:58 +0300 |
commit | ddcf8e8165340c637e1598375916f85a71433b8d (patch) | |
tree | bea686fee47da209ff7e034de634cc32e45c89f0 /layouts/footer.html | |
parent | 24e5b4beb907452720dfcfffa8936f9f7a0dd6cf (diff) |
Make edit page links to open in a new tab
Diffstat (limited to 'layouts/footer.html')
-rw-r--r-- | layouts/footer.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/footer.html b/layouts/footer.html index 775970f7..247eb266 100644 --- a/layouts/footer.html +++ b/layouts/footer.html @@ -3,8 +3,8 @@ <div class="col-9"> <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Show Edit button only in production and on master branch (hide archives) %> - <a href="<%= edit_on_gitlab(@item) %>"><span class="text-decoration-underline">Edit this page</span></a> - <a href="<%= edit_on_gitlab(@item, editor: :webide) %>">(<span class="text-decoration-underline">Web IDE</span>)</a> + <a href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer"><span class="text-decoration-underline">Edit this page</span></a> + <a href="<%= edit_on_gitlab(@item, editor: :webide) %>" target="_blank" rel="noopener noreferrer">(<span class="text-decoration-underline">Web IDE</span>)</a> <% end %> </div> <div class="col-3 p-0 m-0"> @@ -104,4 +104,4 @@ </ul> </div> </div> -</footer>
\ No newline at end of file +</footer> |