show message when team doesnt need members!

This commit is contained in:
Thomas Steen Rasmussen 2017-04-08 09:48:54 +02:00
parent 1bb2b8d9a9
commit 54625985df

View file

@ -57,7 +57,9 @@ Teams | {{ block.super }}
<a href="{% url 'team_leave' camp_slug=camp.slug slug=team.slug %}" class="btn btn-danger"><i class="fa fa-minus"></i> Leave</a> <a href="{% url 'team_leave' camp_slug=camp.slug slug=team.slug %}" class="btn btn-danger"><i class="fa fa-minus"></i> Leave</a>
{% else %} {% else %}
{% if team.needs_members %} {% if team.needs_members %}
<a href="{% url 'team_join' camp_slug=camp.slug slug=team.slug %}" class="btn btn-success"><i class="fa fa-plus"></i> Join</button> <a href="{% url 'team_join' camp_slug=camp.slug slug=team.slug %}" class="btn btn-success"><i class="fa fa-plus"></i> Join</button>
{% else %}
<i>Team does not need members</i>
{% endif %} {% endif %}
{% endif %} {% endif %}
</td> </td>