2019-06-24 11:58:21 +00:00
|
|
|
<div class="card mx-4 my-4">
|
2018-06-30 02:58:39 +00:00
|
|
|
<div class="card-body">
|
2019-06-24 11:58:21 +00:00
|
|
|
<h4 class="card-title">
|
2018-06-30 04:42:03 +00:00
|
|
|
{{ team.name|title }}
|
2018-06-30 02:58:39 +00:00
|
|
|
</h4>
|
2018-06-30 04:42:03 +00:00
|
|
|
{% if membership %}
|
|
|
|
<small class="badge float-right badge-pill badge-{% if membership.state == 'invited' %}info{% else %}primary{% endif %}">{{ membership.get_state_display }}</small>
|
|
|
|
{% endif %}
|
|
|
|
{% if team.description %}
|
|
|
|
<p>{{ team.description }}</p>
|
|
|
|
{% else %}
|
|
|
|
<p>No team description available.</p>
|
|
|
|
{% endif %}
|
2018-06-30 02:58:39 +00:00
|
|
|
</div>
|
2019-06-24 11:58:21 +00:00
|
|
|
<div class="card-footer">
|
2018-06-30 04:42:03 +00:00
|
|
|
<a href="{% url "team_detail" team.slug %}">Details</a>
|
|
|
|
{% if membership %}
|
|
|
|
{% if membership.state == "manager" or user.is_staff %}
|
|
|
|
{% if membership.team.applicants %}{{ membership.team.applicants.count }} applicant{{ membership.team.applicants.count|pluralize }}{% endif %}
|
|
|
|
{% endif %}
|
2018-06-30 02:58:39 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|