diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-15 10:29:29 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-21 00:43:04 +0300 |
commit | 0284917c701acfa5d88a98fef641ab35164ed9a8 (patch) | |
tree | 0f3e62f7f3a633f43a63a070ddef2e06691df37d /app/views/errors | |
parent | 80c57bf6d13d6025a9568afb9cca36c279fac593 (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.haml | 4 |
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" |