{% extends "base.html" %} {% load static %} {% block content %} {% include "includes/sidenav.html" %}
{% if user.is_authenticated %} {% if user.userprofile.team %}
{% if user.userprofile.team.logo %} {{ user.userprofile.team.name }} {% else %}
{% endif %}

{{ user.userprofile.team.name }}

Team Leader: {{ user.userprofile.team.admin.username }} {% if user.userprofile.team.admin.kudos_count %} {{ user.userprofile.team.admin.kudos_count }} kudos {% endif %}

Team Members

{% if user.userprofile.team.admin == user %} {% endif %}
{% for member in team_members %}
{% if member.username == user.userprofile.team.admin.username %}
{% endif %}

{{ member.username }}

{% if member != user %} {% endif %} {% if user.userprofile.team.admin == user and user.userprofile.team.admin != member %} {% endif %}
{% endfor %}

Team Actions

View Join Requests {% if user.userprofile.team.admin == user %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% else %} {% if join_requests %}

Team Invitations

You have pending team invitations

View All Invitations
{% for request in join_requests|slice:":2" %}
{% if request.team.logo %} {{ request.team.name }} {% else %}
{% endif %}

{{ request.team.name }}

Invited by {{ request.team.admin.username }}

{% csrf_token %}
{% endfor %} {% if join_requests|length > 2 %} {% endif %}
{% else %}

Team Invitations

Check your pending team invitations

View All Invitations
{% endif %}

Create Your Team

Join forces with other security enthusiasts! Create a team to collaborate, share knowledge, and tackle security challenges together.

{% endif %} {% else %}

Login Required

Please login to create or join a team. Join our community of security enthusiasts!

{% endif %}
{% endblock content %}