Skip to content

Commit

Permalink
ranking: add captains
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Jun 21, 2024
1 parent 7fb5494 commit c9e0df1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ legend:
teamFR_selected:
other: Selected in Team France

teamFR_captain:
other: Captain of Team France

teasing_solved:
other: Solved the teasing challenge

Expand Down
3 changes: 3 additions & 0 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ legend:
teamFR_selected:
other: Sélectionné(e) dans la Team France

teamFR_captain:
other: Capitaine de la Team France

teasing_solved:
other: A résolu l'épreuve de teasing

Expand Down
2 changes: 2 additions & 0 deletions layouts/ranking/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h2 class="h4 border-bottom border-secondary pb-2 mb-3 mt-2"><svg class="bi me-2
<h2 class="h4 border-bottom border-secondary pb-2 mb-3 mt-2"><svg class="bi me-2" aria-hidden="true"><use href="#bar-chart-line-fill"></use></svg>{{ i18n "legend" | humanize }}</h2>
<ul>
<li>🇫🇷 {{ i18n "teamFR_selected" }}</li>
<li>👑 {{ i18n "teamFR_captain" }}</li>
<li>🔥 {{ i18n "teasing_solved" }}</li>
<li><span class="badge badge-square me-2 text-bg-warning font-monospace fw-bold">J</span> Junior</li>
<li><span class="badge badge-square me-2 text-bg-danger font-monospace fw-bold">S</span> Senior</li>
Expand Down Expand Up @@ -87,6 +88,7 @@ <h2 class="h4 border-bottom border-secondary pb-2 mb-3 mt-2"><svg class="bi me-2
<span class="d-lg-none">{{- $user.username | truncate 16 -}}</span>
{{- if $user.teasing }} 🔥{{ end -}}
{{- if $user.TeamFr }} 🇫🇷{{ end -}}
{{- if $user.captain }} 👑{{ end -}}
</td>
<td>{{ $user.score }}</td>
</tr>
Expand Down

0 comments on commit c9e0df1

Please sign in to comment.