Skip to content

Commit

Permalink
Delete: Delete Popular section temporally
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 1, 2024
1 parent d4c3055 commit 11cfb23
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
16 changes: 12 additions & 4 deletions backend/app/controllers/sonolus/levels_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,16 @@ def info

popular_section = {
title: "#POPULAR",
itemType: "level",
items: self.popular_charts.map { _1.to_sonolus(background_version:) }
itemType: "post",
items: [
{
name: "chcy-post-popular-is-maintenanced",
title: I18n.t("sonolus.popular_maintenance.title"),
thumbnail: {
url: "/assets/warning.png"
}
}
]
}

newest_section = {
Expand Down Expand Up @@ -189,9 +197,9 @@ def info
searches:,
sections: [
private_section,
popular_section,
newest_section,
random_section
random_section,
popular_section
].compact
}
end
Expand Down
4 changes: 4 additions & 0 deletions backend/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ en:
options:
- "v1"
- "v3"

popular_maintenance:
title: "Popular levels section is under maintenance!"

auth:
external_done: "Successfully signed in! Now please go back to the website."
info:
Expand Down
3 changes: 3 additions & 0 deletions backend/config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ ja:
- "v1"
- "v3"

popular_maintenance:
title: "人気譜面欄はメンテナンス中です!"

auth:
external_done: "ログインに成功しました!Webページに戻って下さい。"
info:
Expand Down

0 comments on commit 11cfb23

Please sign in to comment.