UX: Add Login button on 403 error page if user is not logged in (#10154)
This commit is contained in:
parent
e0d2174e75
commit
fc4d74870c
|
@ -1,6 +1,10 @@
|
||||||
<div class="page-not-found">
|
<div class="page-not-found">
|
||||||
<h1 class="title"><%= @title %></h1>
|
<h1 class="title"><%= @title %></h1>
|
||||||
|
|
||||||
|
<%- if (@group&.allow_membership_requests || @group&.public_admission) && !current_user %>
|
||||||
|
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
||||||
|
<%- end %>
|
||||||
|
|
||||||
<%- if @group&.allow_membership_requests %>
|
<%- if @group&.allow_membership_requests %>
|
||||||
<a href="<%= group_path @group.name %>" class='btn btn-primary'><%= SvgSprite.raw_svg('user-plus') %> <%= I18n.t('not_in_group.request_membership') %></a>
|
<a href="<%= group_path @group.name %>" class='btn btn-primary'><%= SvgSprite.raw_svg('user-plus') %> <%= I18n.t('not_in_group.request_membership') %></a>
|
||||||
<%- elsif @group&.public_admission %>
|
<%- elsif @group&.public_admission %>
|
||||||
|
|
Loading…
Reference in New Issue