Files
puzzle-scoreboard/app/views/worlds/main.html.slim
sto 0912a9f408
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Worlds: language switch
2026-09-06 16:34:21 +02:00

53 lines
1.4 KiB
Plaintext

= render "worlds_nav"
.row.mt-3
.col
h4 = t("worlds.main.world_participants")
table.table.table-striped.table-hover
thead
tr
th = t("worlds.main.rank")
th = t("worlds.main.name")
th = t("worlds.main.score")
tbody
- @world_bets_w.each_with_index do |b, i|
tr
- if i == 0
td 🥇
- elsif i == 1
td 🥈
- elsif i == 2
td 🥉
- else
td #{i + 1}
td #{b.name}
td #{b.world_score}
td
a.btn.btn-sm.btn-secondary href="/wjpc_bets/#{@lang}/view/#{b.id}"
= t("worlds.main.view_bet")
.row.mt-3
.col
h4 = t("worlds.main.french_participants")
table.table.table-striped.table-hover
thead
tr
th = t("worlds.main.rank")
th = t("worlds.main.name")
th = t("worlds.main.score")
tbody
- @world_bets_f.each_with_index do |b, i|
tr
- if i == 0
td 🥇
- elsif i == 1
td 🥈
- elsif i == 2
td 🥉
- else
td #{i + 1}
td #{b.name}
td #{b.french_score}
td
a.btn.btn-sm.btn-secondary href="/wjpc_bets/#{@lang}/view/#{b.id}"
= t("worlds.main.view_bet")