diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index b76295b..4607609 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -197,21 +197,6 @@ a:visited { 0 0 50px #b16286, 0 0 60px #b16286, 0 0 70px #b16286; - - /* Animation for bouncing/moving effect */ - animation: bounce 1.5s ease infinite alternate; -} - -@keyframes bounce { - 0% { - transform: translateY(0) rotate(0deg); - } - 50% { - transform: translateY(-10px) rotate(5deg); - } - 100% { - transform: translateY(0) rotate(-5deg); - } } select { diff --git a/app/models/player.rb b/app/models/player.rb index 86c1059..f6b20db 100644 --- a/app/models/player.rb +++ b/app/models/player.rb @@ -35,8 +35,10 @@ class Player < ApplicationRecord self.main_player end - def alts_concat - self.alternate_players.map(&:name).join(", ") + def main_name + if alt? + self.main_player.name + end end def no_circular_references diff --git a/app/views/game/index.html.erb b/app/views/game/index.html.erb index b67daf8..5bbca9f 100644 --- a/app/views/game/index.html.erb +++ b/app/views/game/index.html.erb @@ -28,4 +28,5 @@ <% else %>
No recent games
+ Leaderboard <% end %> \ No newline at end of file diff --git a/app/views/leaderboard/index.html.erb b/app/views/leaderboard/index.html.erb index ad3d3fa..3cc14e5 100644 --- a/app/views/leaderboard/index.html.erb +++ b/app/views/leaderboard/index.html.erb @@ -24,7 +24,7 @@ <% @players.each do |player| %>Player | -Purse | -Wins | -Losses | -
---|---|---|---|
<% @player.name %> | -<% @player.purse %> | -<% @player.wins %> | -<% @player.losses %> | -