<div class="filter_status">
  <!-- TODO: Once #213 is fixed we can simplify some checks here -->

  <%= link_to t('nlt.all'), url_for, class: type_scope.nil? ? "actual" : "''" %>

  <%= link_to t('nlt.available'), url_for(type: 'give', status: 'available'),
    class: type_scope == "give" && status_scope == "available" ? "actual" : "''" %>
  <%= link_to t('nlt.booked'), url_for(type: 'give', status: 'booked'),
    class: type_scope == "give" && status_scope == "booked" ? "actual" : "''" %>
  <%= link_to t('nlt.delivered'), url_for(type: 'give', status: 'delivered'),
    class: type_scope == "give" && status_scope == "delivered" ? "actual" : "''" %>

  <%= link_to t('nlt.requests'), url_for(type: 'want'),
    class: type_scope == "want" ? "actual" : "''" %>
</div>

<div class="filter_status">
  <%= link_to t('nlt.all'), url_for, class: type_scope.nil? ? "actual" : "''" %>

  <%= link_to t('nlt.available'), url_for(type: 'give', status: 'available'),
    class: status_scope == "available" ? "actual" : "''" %>
  <%= link_to t('nlt.booked'), url_for(type: 'give', status: 'booked'),
    class: status_scope == "booked" ? "actual" : "''" %>
  <%= link_to t('nlt.delivered'), url_for(type: 'give', status: 'delivered'),
    class: status_scope == "delivered" ? "actual" : "''" %>

  <%= link_to t('nlt.requests'), url_for(type: 'want'),
    class: type_scope == "want" ? "actual" : "''" %>
</div>

Simplify some checks in a partial
Simplify some checks in a partial

The issue mentioned in the comment is not yet closed, but the specific
problem with routes that made those checks necessary _is_ now fixed.
