We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15562e4 commit 4401d20Copy full SHA for 4401d20
app/views/layouts/better_together/_mobile_bar.html.erb
@@ -1,6 +1,6 @@
1
<div id="mobile-bar" class="container-fluid shadow-sm d-lg-none">
2
<nav class="d-flex justify-content-around align-items-center py-4" aria-label='<%= t('better_together.mobile_bar.navigation') %>'>
3
- <% if policy(current_person).show? %>
+ <% if current_person && policy(current_person).show? %>
4
<%= link_to person_my_profile_path(person_id: current_person.slug), class: "text-light", aria: { label: t('better_together.mobile_bar.profile') }, data: { bs_toggle: "tooltip", bs_placement: "top", bs_title: t('better_together.mobile_bar.profile') } do %>
5
<i class="fas fa-user fa-2x" aria-hidden="true"></i>
6
<span class="visually-hidden"><%= t('better_together.mobile_bar.profile') %></span>
0 commit comments