GetTogether/events/templates/events/team_list.html
Bheesham Persaud 88c809a50d Add show-profile view.
Allows users to view the profiles of other people.
2018-02-24 00:56:32 -05:00

18 lines
563 B
HTML

{% if teams_list %}
<table border="0" width="960px">
{% for team in teams_list %}
<tr>
<td><a href="{% url 'show-team' team.id %}">{{ team.name }}</a></td>
<td>{{ team.country.name|default:'' }}</td>
<td>{{ team.spr.name|default:'' }}</td>
<td>{{ team.city.name|default:'' }}</td>
<td><a href="{% url 'show-profile' team.owner_profile.id %}" title="{{team.owner_profile}}'s profile">{{ team.owner_profile }}</a></td>
<td>{{ team.created_time }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>No team available.</p>
{% endif %}