<% if project %> <% sidebar = SidebarContent.find_by_project_id(project.id) %> <% if sidebar && sidebar.location == 'issues' %> <%= sidebar_content(sidebar, project) %> <% end %> <% end %>