Skip to content

Commit

Permalink
Added grid area to leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
VemAak committed Nov 29, 2024
1 parent 7a45eb3 commit 93ee333
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/includes/bedpres_leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
border-collapse: collapse;
width: 100%;
height: 100%;
grid-area: leaderboard;
}

th, td {
.th_leaderboard, .td_leaderboard {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
Expand All @@ -19,11 +20,11 @@ <h5 class="nabla-frontpage-header">
</h5>
<div class="card flex-grow-1 border border-nabla-blue">
<table class="leaderboard">
<tr><th>Bruker</th><th>Antall Bedpres</th></tr>
<tr><th class="th_leaderboard">Bruker</th><th class="th_leaderboard">Antall Bedpres</th></tr>
{% for t in bedpres_leaderboard %}
<tr>
<td>{{t.first_name}} {{t.last_name}}</td>
<td style="text-align:center">{{t.num_bedpres}}</td>
<td class="td_leaderboard">{{t.first_name}} {{t.last_name}}</td>
<td class="td_leaderboard" style="text-align:center">{{t.num_bedpres}}</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit 93ee333

Please sign in to comment.