showing current volunteers

This commit is contained in:
Torsten 2023-08-26 23:08:07 +03:00
parent 15f5fd6746
commit c444b649f4
2 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,11 @@ class MembersController < ApplicationController
# GET /members # GET /members
def index def index
@members = Member.public_scope.order(:name).page params[:page] @members = Member.public_scope.
where("arriving < ? " , Date.today).
where("leaving > ?" , Date.today).
order(:leaving).
page params[:page]
end end
def timeline def timeline

View File

@ -1,5 +1,9 @@
= paginate @members = paginate @members
.flex.justify-center.m-8.mx-5.md:mx-12.lg:mx-20
.flex.flex-col.text-center
%h1.text-4xl Current Volunteers at Hub Feenix
.mx-20.grid.grid-cols-1.md:grid-cols-2.lg:grid-cols-3.2xl:grid-cols-4.gap-8.md:gap-12.lg:gap-16 .mx-20.grid.grid-cols-1.md:grid-cols-2.lg:grid-cols-3.2xl:grid-cols-4.gap-8.md:gap-12.lg:gap-16
- @members.each do |member| - @members.each do |member|
.overflow-hidden.border.border-gray-100.shadow-sm .overflow-hidden.border.border-gray-100.shadow-sm