Skip to content

Commit

Permalink
Moved Bedpres_leaderboard HTML to includes/bedpres_leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
VemAak committed Oct 30, 2024
1 parent 4c2baec commit 9bb847c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
15 changes: 1 addition & 14 deletions templates/front_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,7 @@ <h5 class="nabla-frontpage-header">
{% include "officeCalendar/includes/list.html" %}
</div>

<div class="leaderboard d-flex flex-column">
<h5 class="nabla-frontpage-header">
Bedpres leaderboard
</h5> <!-- Ren kok fra code_golf.html -->
<table style="width:100%">
<tr><th>Bruker</th><th>Antall Bedpres</th></tr>
{% for t in bedpres_leaderboard %}
<tr>
<td>{{t.first_name}} {{t.last_name}}</td>
<td>{{t.num_bedpres}}</td> <!-- TODO: hva skal stå her istedenfor length???, Funker dette egentlig? -->
</tr>
{% endfor %}
</table>
</div>
{% include "includes/bedpres_leaderboard.html" %}

<div class="latest-nablad d-flex flex-column">
<h5 class="nabla-frontpage-header">
Expand Down
14 changes: 14 additions & 0 deletions templates/includes/bedpres_leaderboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="leaderboard d-flex flex-column">
<h5 class="nabla-frontpage-header">
Bedpres leaderboard
</h5> <!-- Ren kok fra code_golf.html -->
<table style="width:100%">
<tr><th>Bruker</th><th>Antall Bedpres</th></tr>
{% for t in bedpres_leaderboard %}
<tr>
<td>{{t.first_name}} {{t.last_name}}</td>
<td>{{t.num_bedpres}}</td> <!-- TODO: hva skal stå her istedenfor length???, Funker dette egentlig? -->
</tr>
{% endfor %}
</table>
</div>

0 comments on commit 9bb847c

Please sign in to comment.