<commit_before>{% extends "default.html" %}

{% block default_content %}
<div class="jumbotron">
  <h1 style="display:inline;">Teams</h1>
  <div class="pull-right">
    <p><i class="fa fa-users fa-5x text-muted"></i></p>
  </div>
  <p>
    Join a project, or create your own!
  </p>
  <a class="btn btn-success {% if user.team_set.all.exists %}disabled{% endif %}"
     href="{% url 'team_create' %}">
    <i class="fa fa-plus"></i>&nbsp;&nbsp;Create Team
  </a>
  <a class="btn btn-danger {% if not user.team_set.all.exists %}disabled{% endif %}"
     href="{% url 'team_leave' %}">
    <i class="fa fa-close"></i>&nbsp;&nbsp;Leave Team
  </a>
</div>

<table class="table">
  <thead>
    <tr>
      <th>Name</th>
      <th>Members</th>
      <th>Request to Join</th>
    </tr>
  </thead>
  <tbody>
    {% for team in object_list %}
    <tr>
      <th scope="row">
        {% if user_team.pk == team.pk %}<i class="fa fa-star"></i>{% endif %}
        <a href="{{ team.get_absolute_url }}">{{ team.name }}</a>
      </th>
      <td>{{ team.members.count }}</td>
      <td>
        <a class="btn btn-success btn-sm {% if user.team_set.all.exists %}disabled{% endif %}"
           href="{% url 'request_send' slug=team.slug %}">
          Request to join
        </a>
      </td>
    </tr>
    {% endfor %}
  </tbody>
</table>

{% endblock %}
<commit_msg>Move and mute star in list<commit_after>{% extends "default.html" %}

{% block default_content %}
<div class="jumbotron">
  <h1 style="display:inline;">Teams</h1>
  <div class="pull-right">
    <p><i class="fa fa-users fa-5x text-muted"></i></p>
  </div>
  <p>
    Join a project, or create your own!
  </p>
  <a class="btn btn-success {% if user.team_set.all.exists %}disabled{% endif %}"
     href="{% url 'team_create' %}">
    <i class="fa fa-plus"></i>&nbsp;&nbsp;Create Team
  </a>
  <a class="btn btn-danger {% if not user.team_set.all.exists %}disabled{% endif %}"
     href="{% url 'team_leave' %}">
    <i class="fa fa-close"></i>&nbsp;&nbsp;Leave Team
  </a>
</div>

<table class="table">
  <thead>
    <tr>
      <th>Name</th>
      <th>Members</th>
      <th>Request to Join</th>
    </tr>
  </thead>
  <tbody>
    {% for team in object_list %}
    <tr>
      <th scope="row">
        <a href="{{ team.get_absolute_url }}">{{ team.name }}</a>
        {% if user_team.pk == team.pk %}<i class="fa fa-star text-muted"></i>{% endif %}
      </th>
      <td>{{ team.members.count }}</td>
      <td>
        <a class="btn btn-success btn-sm {% if user.team_set.all.exists %}disabled{% endif %}"
           href="{% url 'request_send' slug=team.slug %}">
          Request to join
        </a>
      </td>
    </tr>
    {% endfor %}
  </tbody>
</table>

{% endblock %}

{'fraction_non_alphanumeric': 0.218841642228739, 'fraction_numerical': 0.0021994134897360706, 'mean_word_length': 2.6483957219251337, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '3215964', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1001, 'n_words': 238}