FEATURE: Show login button on error page if user is not logged in
This commit is contained in:
parent
dc14d156b6
commit
bd3c0dd59f
|
@ -1,7 +1,7 @@
|
||||||
<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 %>
|
<%- if !current_user %>
|
||||||
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
<a href="<%= path "/login" %>" class='btn btn-primary'><%= SvgSprite.raw_svg('fa-user') %><%= I18n.t('log_in') %></a>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue