Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
urlpatterns = [
path("", include("home.urls")),
path("admin/", admin.site.urls),
path("accounts", include("allauth.urls")),
path("accounts/", include("allauth.urls")),
path("profile/", include("profiles.urls")),
path("hackathon/", include(("hackathon.urls", "hackathon"),
namespace='hackathon')),
Expand Down
36 changes: 34 additions & 2 deletions profiles/templates/profiles/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,39 @@

{% block content %}

<!-- TO DO : build profile page -->
TEST PROFILE PAGE
<h1>Profile Page</h1>
<h2>You are logged in as:</h2>

<!-- Profile display -->

<div class="container-fluid">
<div class="row">

<div class="col-md-4">
<h4>Username:</h4>
<p>{{ user.username }}</p>
</div>

<div class="col-md-4">
<h4>Email Address:</h4>
<p>{{ user.email }}</p>
</div>

</div>

<div class="row">

<div class="col-md-4">
<h4>First name:</h4>
<p>{{ user.first_name }}</p>
</div>

<div class="col-md-4">
<h4>Last name:</h4>
<p>{{ user.last_name }}</p>
</div>

</div>

</div>
{% endblock %}
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
{% include "includes/footer.html" %}
</footer>

</body>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous">
</script>
Expand All @@ -52,4 +50,6 @@
{% endblock %}
<script src="{% static 'js/script.js' %}"></script>

</body>

</html>
2 changes: 1 addition & 1 deletion templates/includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<a class="dropdown-item" href="#">Register</a>
<a class="dropdown-item" href="#">Login</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">My Profile</a>
<a class="dropdown-item" href="{% url 'profile' %}">My Profile</a>
<a class="dropdown-item" href="#">Logout</a>
</div>
</li>
Expand Down