<% @page_title = "Teams" %>

<% cache cache_key do %>
  <h2><%= RacingAssociation.current.short_name %>-registered teams in Oregon and SW Washington.</h2>

  <p>A list of <%= link_to "clubs rides", "http://#{RacingAssociation.current.static_host}/teams/rides.html", class: "obvious" %> is available if you're looking for a group ride.</p>

  <h3>Teams</h3>
  <%= table id: "teams", collection: @teams, columns: 4 do %>
    <tr>
      <th>Name</th>
      <% unless mobile_request? %>
      <th>Sponsors</th>
      <th>Contact</th>
      <% end %>
      <th>Results</th>
    </tr>
    <%= render partial: "team", collection: @teams.sort_by(&:downcased_name) %>
  <% end -%>
<% end -%>

<ul class="page-links">
  <li><%= link_to "Excel", { format: :xlsx }, download: "teams.xlsx" %></li>
</ul>

<% @page_title = "Teams" %>

<% cache cache_key do %>
  <h2><%= RacingAssociation.current.short_name %>-registered teams in Oregon and SW Washington.</h2>

  <p>A list of <%= link_to "clubs rides", "club_rides", class: "obvious" %> is available if you're looking for a group ride.</p>

  <h3>Teams</h3>
  <%= table id: "teams", collection: @teams, columns: 4 do %>
    <tr>
      <th>Name</th>
      <% unless mobile_request? %>
      <th>Sponsors</th>
      <th>Contact</th>
      <% end %>
      <th>Results</th>
    </tr>
    <%= render partial: "team", collection: @teams.sort_by(&:downcased_name) %>
  <% end -%>
<% end -%>

<ul class="page-links">
  <li><%= link_to "Excel", { format: :xlsx }, download: "teams.xlsx" %></li>
</ul>

Update team rides link to dynamic page
Update team rides link to dynamic page
