Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/2910/participation table #351

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/helpers/pbs/event_participations_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2012-2023, Pfadibewegung Schweiz. This file is part of
# Copyright (c) 2012-2024, Pfadibewegung Schweiz. This file is part of
# hitobito_pbs and licensed under the Affero General Public License version 3
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_pbs.
Expand All @@ -19,5 +19,11 @@ def js_data_sharing_help_text(participation, for_someone_else)

CustomContent.get(content_key).body
end

def event_participation_table_options(t, event:, group:)
if event.is_a?(Event::Camp)
t.col(Event::Participation.human_attribute_name(:state)) { |p| t("activerecord.attributes.event/camp.participation_states.#{p.state}") }
end
end
end
end
2 changes: 0 additions & 2 deletions app/views/event/participations/_list_pbs.html.haml

This file was deleted.

Loading