{% if event.alliance_selections %}
  <h3>Alliances</h3>
  <table class="table table-condensed table-striped table-center">
  {% for alliance in event.alliance_selections %}
    {% if loop.first %}
    <tr>
      <th>#</th>
      {% for _ in alliance.picks %}
        {% if loop.first %}
          <th>Captain</th>
        {% else %}
          <th>Pick {{loop.index0}}</th>
        {% endif %}
      {% endfor %}
    </tr>
    {% endif %}

    <tr>
      <td>{{loop.index}}</td>
      {% for team in alliance.picks %}
        <td><a href="/team/{{ team|digits }}/{{event.year}}">{{ team|strip_frc }}</a></td>
      {% endfor %}
    </tr>
  {% endfor %}
  </table>
{% endif %}
{% if event.alliance_selections %}
  <h3>Alliances</h3>
  <table class="table table-condensed table-striped table-center">
  {% for alliance in event.alliance_selections %}
    {% if loop.first %}
    <tr>
      <th>Alliance</th>
      {% for _ in alliance.picks %}
        {% if loop.first %}
          <th>Captain</th>
        {% else %}
          <th>Pick {{loop.index0}}</th>
        {% endif %}
      {% endfor %}
    </tr>
    {% endif %}

    <tr>
      <td>{% if alliance.name %}{{alliance.name}}{% else %}Alliance {{loop.index}}{% endif %}</td>
      {% for team in alliance.picks %}
        <td><a href="/team/{{ team|digits }}/{{event.year}}">{{ team|strip_frc }}</a></td>
      {% endfor %}
    </tr>
  {% endfor %}
  </table>
{% endif %}
Use alliance name in alliance table if available
Use alliance name in alliance table if available
