about summary refs log tree commit diff
path: root/users/grfn/bbbg/src
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/bbbg/src')
-rw-r--r--users/grfn/bbbg/src/bbbg/handlers/events.clj12
1 files changed, 11 insertions, 1 deletions
diff --git a/users/grfn/bbbg/src/bbbg/handlers/events.clj b/users/grfn/bbbg/src/bbbg/handlers/events.clj
index 2264d36e7d67..fcebb199f0cb 100644
--- a/users/grfn/bbbg/src/bbbg/handlers/events.clj
+++ b/users/grfn/bbbg/src/bbbg/handlers/events.clj
@@ -101,10 +101,15 @@
      [:thead
       [:th "Meetup Name"]
       [:th "Discord Name"]
+      [:th "RSVP"]
       [:th "Signed In"]
       [:th "Last Vaccination Check"]]
      [:tbody
-      (for [attendee attendees]
+      (for [attendee (sort-by (juxt (comp not ::event-attendee/rsvpd-attending?)
+                                    (comp not ::event-attendee/attended?)
+                                    (comp some? :last-check)
+                                    ::attendee/meetup-name)
+                              attendees)]
         [:tr
          [:td.attendee-name (::attendee/meetup-name attendee)]
          [:td
@@ -113,6 +118,11 @@
               "—")]
          [:td
           [:label.mobile-label "Signed In: "]
+          (if (::event-attendee/rsvpd-attending? attendee)
+            [:span {:title "Yes"} "✔️"]
+            [:span {:title "No"} "❌"])]
+         [:td
+          [:label.mobile-label "Signed In: "]
           (if (::event-attendee/attended? attendee)
             [:span {:title "Yes"} "✔️"]
             [:span {:title "No"} "❌"])]