Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-08-15 10:29:29 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-08-21 00:43:04 +0300
commit0284917c701acfa5d88a98fef641ab35164ed9a8 (patch)
tree0f3e62f7f3a633f43a63a070ddef2e06691df37d /app/views/errors
parent80c57bf6d13d6025a9568afb9cca36c279fac593 (diff)
Remove inline JS in links
Changes these to use unobtrusive JS
Diffstat (limited to 'app/views/errors')
-rw-r--r--app/views/errors/access_denied.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/errors/access_denied.html.haml b/app/views/errors/access_denied.html.haml
index 46931b5932d..1ed7b56db1d 100644
--- a/app/views/errors/access_denied.html.haml
+++ b/app/views/errors/access_denied.html.haml
@@ -10,7 +10,7 @@
= message
%p
= s_('403|Please contact your GitLab administrator to get permission.')
- .action-container.js-go-back{ style: 'display: none' }
- %a{ href: 'javascript:history.back()', class: 'btn btn-success' }
+ .action-container.js-go-back{ hidden: true }
+ %button{ type: 'button', class: 'btn btn-success' }
= s_('Go Back')
= render "errors/footer"