Skip to content

Commit

Permalink
Fix ranking tips
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Jun 4, 2024
1 parent 14e8d78 commit 20c4429
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/actions/mixins/page_helpers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ module PageHelpers
io << "同分段 #{same_ranking_count}"

unless ranking_offset.nil?
io << "\n相较前一年位次 "
io << "\n位次比前一年"
if ranking_offset > 0
io << "+"
io << "下降 "
else
io << "提升 "
end
io << ranking_offset

io << ranking_offset.abs
io << ""
end
end

Expand Down

0 comments on commit 20c4429

Please sign in to comment.