Skip to content

Commit 65af39c

Browse files
Add hackathon count and veteran status to profile page
1 parent e777e83 commit 65af39c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

profiles/templates/profiles/profile.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@
9191
{{ user.participant_label|title }}
9292
</p>
9393

94+
<label for="userTeamCount">Hackathons Joined</label>
95+
<p id="userTeamCount">
96+
{{ user.teams.all|length }}
97+
</p>
98+
<label for="userHackathons">List of Hackathons Joined</label>
99+
{% if user.teams.all %}
100+
<ul id="userHackathons">
101+
{% for team in user.teams.all %}
102+
<li>
103+
<a href="{% url 'hackathon_detail' team.hackathon.slug %}">{{ team.hackathon.name }}</a>
104+
</li>
105+
{% endfor %}
106+
</ul>
107+
{% else %}
108+
<p id="userHackathons">You haven't participated in any hackathons yet. Why not sign up for the next one?</p>
109+
{% endif %}
110+
94111
<label for="website">Website</label>
95112
<p id="website" class="profile-website-url">
96113
{% if user.website_url %}

0 commit comments

Comments
 (0)