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/archives.html | |
parent | 24e5b4beb907452720dfcfffa8936f9f7a0dd6cf (diff) |
Make edit page links to open in a new tab
Diffstat (limited to 'layouts/archives.html')
-rw-r--r-- | layouts/archives.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/archives.html b/layouts/archives.html index 11651585..a20cc5f8 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -16,8 +16,8 @@ <% if is_production? && ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Show Edit button only in production and on master branch (hide archives) %> <div class="edit-on"> - <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item) %>">Edit this page</a> - <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item, editor: :webide) %>">Web IDE</a> + <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item) %>" target="_blank" rel="noopener noreferrer">Edit this page</a> + <a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item, editor: :webide) %>" target="_blank" rel="noopener noreferrer">Web IDE</a> </div> <% end %> <% if @item[:last_updated] %> |