<commit_before>{% extends 'backend/base.html' %}

{% block dyncontent %}
  <div class="content">

    <h2>Scoreboard</h2>
    <p>&nbsp;</p>

    <div class="col-md-2"></div>

    <div class="col-md-8">
      <div class="panel panel-default shadow">
        <table class="table table-striped">
          <thead>
          <tr>
            <th class="col-md-1">#</th>
            <th class="col-md-3">User</th>
            <th class="col-md-2">Course</th>
            <th class="col-md-2">Semester</th>
            <th class="col-md-2">Points</th>
          </tr>
          </thead>
          <tbody>
          {% for score in scores|dictsortreversed:'credits' %}
            <tr {% ifequal user.get_username score.username %}
              class="mark"
            {% endifequal %}>
              <td>
                {{ forloop.counter }}
              </td>
              <td>{{ score.username }}</td>
              <td>-</td>
              <td>-</td>
              <td>{% firstof score.credits "0" %}</td>
            </tr>
          {% endfor %}
          </tbody>
        </table>
      </div>
    </div>

    <div class="col-md-2"></div>

  </div>
{% endblock dyncontent %}<commit_msg>templates: scores - add course and semester - fix text alignment<commit_after>{% extends 'backend/base.html' %}

{% block dyncontent %}
  <div class="content">

    <h2>Scoreboard</h2>
    <p>&nbsp;</p>

    <div class="col-md-2"></div>

    <div class="col-md-8">
      <div class="panel panel-default shadow">
        <table class="table table-striped">
          <thead>
          <tr>
            <th class="col-md-1">#</th>
            <th class="col-md-3">User</th>
            <th class="col-md-1">Course</th>
            <th class="col-md-1 text-center">Semester</th>
            <th class="col-md-2 text-right">Points</th>
          </tr>
          </thead>
          <tbody>
          {% for score in scores|dictsortreversed:'credits' %}
            <tr {% ifequal user.get_username score.username %}
              class="mark"
            {% endifequal %}>
              <td>
                {{ forloop.counter }}
              </td>
              <td>{{ score.username }}</td>
              <td>{{ score.profile.course }}</td>
              <td class="text-center">{{ score.profile.semester }}</td>
              <td class="text-right">{% firstof score.credits "0" %}</td>
            </tr>
          {% endfor %}
          </tbody>
        </table>
      </div>
    </div>

    <div class="col-md-2"></div>

  </div>
{% endblock dyncontent %}
{'fraction_non_alphanumeric': 0.187426326129666, 'fraction_numerical': 0.008644400785854617, 'mean_word_length': 1.5587939698492463, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2360555', 'n_tokens_mistral': 852, 'n_tokens_neox': 799, 'n_words': 154}