diff --git a/app/views/events/_filter.html.erb b/app/views/events/_filter.html.erb index a6c0e219e..80c6ab48d 100644 --- a/app/views/events/_filter.html.erb +++ b/app/views/events/_filter.html.erb @@ -19,14 +19,13 @@ filter_selected_class: "selected" } do %> <%= render "events/filter/header" %> <%= render "events/filter/new_collection_option" %> - <% if Current.user.collections.count > 1 %> + <% if Current.user.collections.count > 15 %> <% end %> + <%= render "events/filter/custom_collections" %> <%= form_with url: events_path, method: :get, class: "flex flex-column max-width popup__list full-width", data: { controller: "form" } do |form| %> <%= render "events/filter/all_collections_option", form: form, filter: filter %> -
- <%= render "events/filter/custom_collections" %> <%= render partial: "events/filter/collection_option", collection: Current.user.collections, as: :collection, locals: { form: form, filter: filter } %> diff --git a/app/views/events/filter/_custom_collections.html.erb b/app/views/events/filter/_custom_collections.html.erb index bea8bea91..f3a07e15e 100644 --- a/app/views/events/filter/_custom_collections.html.erb +++ b/app/views/events/filter/_custom_collections.html.erb @@ -1,28 +1,27 @@ - + <% @filters.each do |filter| %> - + <% end %> - -
\ No newline at end of file + \ No newline at end of file