showing current volunteers
This commit is contained in:
parent
15f5fd6746
commit
c444b649f4
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user