<% title @user.username %>

<h1><%= @user.username %></h1>

<% if @rides.any? %>
  <h3>Rides</h3>

  <table class="table table-striped table-hover table-bordered">
    <thead>
      <tr>
        <th>Date</th>
        <th>Distance</th>
        <th>Description</th>
      </tr>
    </thead>

    <% @rides.each do |ride| %>
      <%= content_tag_for :tr, ride do %>
        <td><%= ride.date %></td>
        <td><%= ride.bike_distance %></td>
        <td><%= ride.description %></td>
        <% if can? :manage, ride %>
          <td><%= link_to "Edit", edit_ride_path(ride) %></td>
        <% end %>
      <% end %>
    <% end %>
  </table>
<% else %>
  <p><%= t "user.rides.empty" %></p>
<% end %>

<% title @user.username %>

<h1><%= @user.username %></h1>

<% if @rides.any? %>
  <h3>Rides</h3>

  <table class="table table-striped table-hover table-bordered">
    <thead>
      <tr>
        <th>Date</th>
        <th>Distance</th>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>

    <% @rides.each do |ride| %>
      <%= content_tag_for :tr, ride do %>
        <td><%= ride.date %></td>
        <td><%= ride.bike_distance %></td>
        <td><%= trip_type(ride) %></td>
        <td><%= ride.description %></td>
        <% if can? :manage, ride %>
          <td><%= link_to "Edit", edit_ride_path(ride) %></td>
        <% end %>
      <% end %>
    <% end %>
  </table>
<% else %>
  <p><%= t "user.rides.empty" %></p>
<% end %>

Add trip type column to user show page
Add trip type column to user show page
