counting private profiles
This commit is contained in:
parent
35e73d1fc2
commit
0c645f61e9
@ -8,6 +8,8 @@ class MembersController < ApplicationController
|
|||||||
where("leaving > ?" , Date.today).
|
where("leaving > ?" , Date.today).
|
||||||
order(:leaving).
|
order(:leaving).
|
||||||
page params[:page]
|
page params[:page]
|
||||||
|
@private = Member.where("arriving < ? " , Date.today).
|
||||||
|
where("leaving > ?" , Date.today).count - @members.length
|
||||||
end
|
end
|
||||||
|
|
||||||
def timeline
|
def timeline
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
.flex.justify-center.m-8.mx-5.md:mx-12.lg:mx-20
|
.flex.justify-center.m-8.mx-5.md:mx-12.lg:mx-20
|
||||||
.flex.flex-col.text-center
|
.flex.flex-col.text-center
|
||||||
%h1.text-4xl Current Volunteers at Hub Feenix
|
%h1.text-4xl Current Volunteers at Hub Feenix
|
||||||
|
-if @private > 0
|
||||||
|
.text-gray-500
|
||||||
|
Not showing
|
||||||
|
= @private
|
||||||
|
private profiles
|
||||||
|
|
||||||
.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|
|
||||||
|
Loading…
Reference in New Issue
Block a user