<h1>Check-ins for <%= @place.name %></h1>

<div>
  <h3><%= @place.name %></h3>
  <p>Description: <%= @place.description %></p>
  <p>Address: <%= @place.address %></p>
  <p>Capacity: <%= @place.capacity %></p>
</div>

<h2><%= link_to "Check-in to this location!", new_place_checkin_path(@place) %><h2>

<% @checkins.each do |checkin| %>
  <div>
    <h3><%= link_to "Check-in #{checkin.id}", "/places/#{@place.id}/checkins/#{checkin.id}" %></h3>
    <h3><%= link_to checkin.user.username, user_path(checkin.user) %> checked in on <%= checkin.date_attended %></h3>
    <h3>Description: <%= checkin.description %></h3>
    <%= render "like", checkin: checkin %>
  </div>
<% end %>
<h1>Check-ins for <%= @place.name %></h1>

<div>
  <h3><%= @place.name %></h3>
  <p>Description: <%= @place.description %></p>
  <p>Address: <%= @place.address %></p>
  <p>Capacity: <%= @place.capacity %></p>
</div>

<% if logged_in? %>
<h2><%= link_to "Check-in to this location!", new_place_checkin_path(@place) %><h2>
<% end %>

<% @checkins.each do |checkin| %>
  <div>
    <h3><%= link_to "Check-in #{checkin.id}", "/places/#{@place.id}/checkins/#{checkin.id}" %></h3>
    <h3><%= link_to checkin.user.username, user_path(checkin.user) %> checked in on <%= checkin.date_attended %></h3>
    <h3>Description: <%= checkin.description %></h3>
    <%= render "like", checkin: checkin %>
  </div>
<% end %>
Add a conditional to only show the checkin button if a user is logged in
Add a conditional to only show the checkin button if a user is logged in
