FEATURE: Show login button on error page if user is not logged in

This commit is contained in:
Dan Ungureanu 2020-07-30 12:34:34 +03:00
parent dc14d156b6
commit bd3c0dd59f
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<div class="page-not-found">
<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>
<%- end %>