Skip to content

Commit

Permalink
Merge pull request #1047 from DaanVanVugt/feature/sorted_provider_events
Browse files Browse the repository at this point in the history
sorted provider events
  • Loading branch information
fbacall authored Nov 25, 2024
2 parents 4944b11 + 11f0b53 commit 9fea817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_providers/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<% resource_limit = 30 %>
<% materials = @content_provider.materials.from_verified_users.limit(resource_limit) %>
<% materials_count = @content_provider.materials.from_verified_users.count %>
<% upcoming_events = @content_provider.events.from_verified_users.not_finished.not_disabled %>
<% upcoming_events = @content_provider.events.from_verified_users.not_finished.not_disabled.order(start: :asc) %>
<% past_events = @content_provider.events.from_verified_users.finished.not_disabled %>
<% events = upcoming_events.limit(resource_limit) %>
<% e = @content_provider.events.from_verified_users.not_disabled %>
Expand Down

0 comments on commit 9fea817

Please sign in to comment.