Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
💥 Web: change the period tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Oct 5, 2022
1 parent 39a0a88 commit a63f82f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/web/i18n/en.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ title-period-1-week = Week
title-period-1-year = Year
title-period-12-hours = 12 hours
title-period-2-days = 2 days
title-period-2-hours = 2 hours
title-period-2-months = 2 months
title-period-2-weeks = 2 weeks
title-period-24-hours = 24 hours
title-period-3-days = 3 days
title-period-3-months = 3 months
title-period-3-weeks = 3 weeks
title-period-4-hours = 4 hours
title-period-6-hours = 6 hours
title-period-6-months = 6 months
title-period-8-hours = 8 hours
title-posterior-gold = Gold booster yield
Expand Down
2 changes: 2 additions & 0 deletions src/web/i18n/ru.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ title-period-1-week = Неделя
title-period-1-year = Год
title-period-12-hours = 12 часов
title-period-2-days = 2 дня
title-period-2-hours = 2 часа
title-period-2-months = 2 месяца
title-period-2-weeks = 2 недели
title-period-24-hours = 24 часа
title-period-3-days = 3 дня
title-period-3-months = 3 месяца
title-period-3-weeks = 3 недели
title-period-4-hours = 4 часа
title-period-6-hours = 6 часов
title-period-6-months = 6 месяцев
title-period-8-hours = 8 часов
title-posterior-gold = Бустер золота
Expand Down
6 changes: 2 additions & 4 deletions src/web/views/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ pub async fn get(
nav.tabs.is-boxed.has-text-weight-medium {
div.container {
ul {
(render_period_li(view_model.preferences.period, from_hours(4), &locale.text("title-period-4-hours")?)?)
(render_period_li(view_model.preferences.period, from_hours(8), &locale.text("title-period-8-hours")?)?)
(render_period_li(view_model.preferences.period, from_hours(2), &locale.text("title-period-2-hours")?)?)
(render_period_li(view_model.preferences.period, from_hours(6), &locale.text("title-period-6-hours")?)?)
(render_period_li(view_model.preferences.period, from_hours(12), &locale.text("title-period-12-hours")?)?)
(render_period_li(view_model.preferences.period, from_days(1), &locale.text("title-period-24-hours")?)?)
(render_period_li(view_model.preferences.period, from_days(2), &locale.text("title-period-2-days")?)?)
Expand Down Expand Up @@ -846,7 +846,6 @@ pub async fn get(
button.button.is-link { span.icon { i.fa-solid.fa-arrow-right {} } }
}
}
p.help { (locale.text("navbar-item-target-victory-ratio-help")?) }
}
}
}
Expand Down Expand Up @@ -883,7 +882,6 @@ pub async fn get(
button.button.is-link { span.icon { i.fa-solid.fa-arrow-right {} } }
}
}
p.help { (locale.text("navbar-item-confidence-level-help")?) }
}
}
}
Expand Down

0 comments on commit a63f82f

Please sign in to comment.