59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
{% extends 'game_base.html' %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-10 offset-lg-1 content">
|
|
<h1 class="section-header">Your Profile</h1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-10 offset-lg-1 content">
|
|
<p>Logged in as {{user.email}}</p>
|
|
<p>
|
|
<a class="btn btn-primary btn-lg" style="margin-top:16px" href="{% url 'account_change_password' %}">Change Password</a>
|
|
</p>
|
|
<p>
|
|
<a class="btn btn-primary btn-lg" href="{% url 'api-key-view' pk=user.pk %}">Edit Details</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-10 offset-lg-1 content">
|
|
<h3 class="section-header">Played Games</h3>
|
|
<hr>
|
|
<p>Coming soon</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-10 offset-lg-1 content">
|
|
<h3 class="section-header">Your Contributions</h3>
|
|
<hr>
|
|
<table>
|
|
<tr>
|
|
<th>Challenge Name</th>
|
|
<th>Average Score</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for challenge in user_challenges %}
|
|
<tr>
|
|
<td>{{challenge.name}}</td>
|
|
<td>{{challenge.average}}</td>
|
|
<td><a class="btn btn-warning btn-block" href="{% url 'game:edit-challenge' pk=challenge.pk %}" role="button">Edit</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<hr>
|
|
<a class="btn btn-primary btn-lg" href="{% url 'game:create-challenge' %}">Create a New Challenge</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|