Worlds Bets
This commit is contained in:
52
app/views/worlds/main.html.slim
Normal file
52
app/views/worlds/main.html.slim
Normal file
@@ -0,0 +1,52 @@
|
||||
= render "worlds_nav"
|
||||
|
||||
.row.mt-3
|
||||
.col-6
|
||||
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/view/#{b.id}"
|
||||
= t("worlds.main.view_bet")
|
||||
|
||||
.col-6
|
||||
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/view/#{b.id}"
|
||||
= t("worlds.main.view_bet")
|
||||
Reference in New Issue
Block a user