-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from uchicago-cs/users/hist-info
Displaying Historical Information on a user view
- Loading branch information
Showing
3 changed files
with
78 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h2>User Historical Information</h2> | ||
<ul> | ||
<li>Name: {{ user.name }}</li> | ||
<!-- Add additional information here --> | ||
<li> | ||
Games Played: | ||
<!-- {{ user.games_played }} TO BE IMPLEMENTED--> | ||
</li> | ||
<li> | ||
Games Won: | ||
<!-- {{ user.games_won }} TO BE IMPLEMENTED--> | ||
</li> | ||
<!-- Add more fields here--> | ||
</ul> | ||
<div class="user-stats"> | ||
<h2>User Match and Tournament Stats</h2> | ||
<ul class="user-info"> | ||
<li>Name: {{ user.name }}</li> | ||
<!-- Add additional information here --> | ||
<li> | ||
Matches Played: | ||
{{ match_count }} | ||
</li> | ||
<li> | ||
Matches Won: | ||
{{ match_wins }} | ||
</li> | ||
<li> | ||
Tournaments Played: | ||
{{ tournament_count }} | ||
</li> | ||
<li> | ||
Tournaments Won: | ||
{{ tournament_wins }} | ||
</li> | ||
</ul> | ||
</div> | ||
<style> | ||
.user-stats { | ||
max-width: 600px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
background-color: #f8f8f8; | ||
border: 1px solid #ddd; | ||
border-radius: 5px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
.user-info { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
.user-info li { | ||
margin-bottom: 15px; | ||
} | ||
</style> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters