From fc4d74870c72d8bf972b1b5d185fbe4b666fcc81 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Wed, 1 Jul 2020 18:27:42 +0300 Subject: [PATCH] UX: Add Login button on 403 error page if user is not logged in (#10154) --- app/views/exceptions/not_found.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb index 32f2ca776d0..873a79cc3b9 100644 --- a/app/views/exceptions/not_found.html.erb +++ b/app/views/exceptions/not_found.html.erb @@ -1,6 +1,10 @@

<%= @title %>

+ <%- if (@group&.allow_membership_requests || @group&.public_admission) && !current_user %> + " class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %> + <%- end %> + <%- if @group&.allow_membership_requests %> <%= SvgSprite.raw_svg('user-plus') %> <%= I18n.t('not_in_group.request_membership') %> <%- elsif @group&.public_admission %>