symposion_app/pinaxcon/templates/symposion/teams/_team_row.html

24 lines
974 B
HTML
Raw Normal View History

2018-06-30 04:42:03 +00:00
<div class="card border-primary mx-4 my-4">
<div class="card-body">
<h4 class="card-title text-primary">
2018-06-30 04:42:03 +00:00
{{ team.name|title }}
</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 %}
</div>
2018-06-30 04:42:03 +00:00
<div class="card-footer bg-primary text-secondary">
<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 %}
{% endif %}
</div>
</div>