Skip to content

Commit

Permalink
Don't display player count next to Duty Roster heading
Browse files Browse the repository at this point in the history
This was superfluous since the Duty Roster list right below it is
numbered.
  • Loading branch information
Paul DobbinSchmaltz committed Nov 11, 2024
1 parent fa0d9b5 commit 8d0573d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions app/views/games/past/_duty_roster.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
<%= turbo_stream_from(*duty_roster.turbo_stream_name) %>

<div class="space-y-3">
<h4 class="h3">
Duty Roster
<small title="Player Count" class="text-dim">
(<%= duty_roster.count %>)
</small>
</h4>
<h4 class="h3">Duty Roster</h4>

<div
data-turbo-prefetch="false"
Expand Down
4 changes: 0 additions & 4 deletions app/views/games/users/duty_roster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ def initialize(game:)

def turbo_stream_name = self.class.turbo_stream_name(game)

def count
game.users.size
end

def listings
Listing.wrap(game.users, game:)
end
Expand Down

0 comments on commit 8d0573d

Please sign in to comment.