-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from puzzle/feature/418
Revert participatory process grouping
- Loading branch information
Showing
8 changed files
with
16 additions
and
118 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
app/cells/decidim/participatory_processes/process_filters/filter_tabs.erb
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
app/cells/decidim_zuerich/participatory_processes/process_filters_cell.rb
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
app/overrides/cells/decidim/participatory_processes/process_filters_cell_override.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# We would love to do a prepend instead of what is happening here | ||
# For whatever reason though the prepend never properly works | ||
# Even if we include the module it doesn't get loaded | ||
# Must be some crazy loading shenanigans | ||
# Pry-ing into the customization class and using the following commands might be useful for future debugging: | ||
# $ -a Decidim::ParticipatoryProcesses::ProcessFiltersCell | ||
# $ -a DecidimZuerich::ParticipatoryProcesses::ProcessFiltersCell | ||
Decidim::ParticipatoryProcesses::ProcessFiltersCell.class_eval do | ||
def other_filters_with_value | ||
@other_filters_with_value ||= [current_filter] + other_filters.select do |filter| | ||
process_count_by_filter[filter].positive? | ||
end | ||
end | ||
end |
23 changes: 0 additions & 23 deletions
23
...ontrollers/decidim/participatory_processes/participatory_processes_controller_override.rb
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...y_processes/participatory_processes/index/display_process_groups_override.html.erb.deface
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
app/views/decidim/participatory_processes/participatory_processes/_process_groups.html.erb
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
app/views/decidim/participatory_processes/participatory_processes/index.js.erb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters