{% extends "competition/competition_base.html" %}
{% load competition_tags %}

{% block content %}
  <table class="table table-hover">
    <tbody>
      <tr>
        <th>Game #</th>
        <td>{{ game.id }}</td>
      </tr>
      {% with scores=game.scores.select_related.all|dictsortreversed:"score" %}
      <tr>
        <th>Opponents</th>
          <td>{% include "competition/game/_opponent_list.html" %}</td>
      </tr>
      <tr>
        <th>Result</th>
        {% include "competition/game/_result_display.html" %}
      </tr>
      {% endwith %}
      <tr>
        <th>Submission Name</th>
        <td>
          <ul class="unstyled" style="margin-bottom:0;">
            {% for score in team_scores %}
              <li>{{ score.data.version }}</li>
            {% endfor %}
          </ul>
        </td>
      </tr>
      <tr>
        <th>Game Log</th>
        <td>
          <form method="get" action="{{ game.data.gamelog_url }}"
                style="margin-bottom: 0;">
            <button class="btn btn-primary">
              <i class="icon-download"></i> Download
            </button>
          </form>
        </td>
      </tr>
      <tr>
        <th>Build Output</th>
        <td>
          {% for score in team_scores %}
            <form method="get" action="{{ score.data.output_url }}"
                  style="margin-bottom: 0;">
              <button class="btn btn-primary">
                <i class="icon-download"></i> Download
              </button>
            </form>
          {% endfor %}
        </td>
      </tr>
    </tbody>
  </table>
{% endblock %}

{% block script %}
  <script>
    $(function(){
    $('#eligible').tooltip({placement: "left"});
    $('#ineligible').tooltip({placement: "left"});
    $('#paid-up').tooltip({placement: "left"});
    $('#out-of-invites').tooltip({placement: "left"});
    $('#full-team').tooltip({placement: "left"});
    });
  </script>
{% endblock %}

Update game detail page to show gamelog and such
Update game detail page to show gamelog and such
