-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#M01. Judging automation - calculate and display total scores (#120)
* Update function check_projects_scores to calculate scores and sort teams Create the final_score.html to show the score table, add css rules to style it. Create an url path for final_score. * #M01. Judging automation - Add <thead> and <tbody> for the table Style the elements in the new format.
- Loading branch information
1 parent
15ad19e
commit af73575
Showing
4 changed files
with
90 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% block content %} | ||
<h1 class="table_titles"> {{ hackathon }} <br> Final Scores </h1> | ||
{% if sorted_teams_scores %} | ||
<table class="final_score_table"> | ||
<thead> | ||
<tr class="table_titles"> | ||
<th> Project </th> | ||
<th> Score </th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for team in sorted_teams_scores %} | ||
<tr> | ||
<td>{{ team.0 }}</td> | ||
<td>{{ team.1 }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% else %} | ||
<strong>There are no final scores for this Hackathon.</strong> | ||
{% endif %} | ||
{% endblock %} | ||
|
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
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