Add indication for unverified volunteers (#45)

We want to have some indication for that some volunteers haven't confirmed their email.

Perhaps "unverified" is bad terminology, but until we have proper "verification" it will suffice.

(Ideally there would also be a filter, but my rails is way too rusty...)

Reviewed-on: #45
Co-authored-by: Tocho Tochev <tocho@tochev.net>
Co-committed-by: Tocho Tochev <tocho@tochev.net>
This commit is contained in:
Tocho Tochev 2024-06-01 12:31:38 +03:00 committed by Petko Bordjukov
parent 87df897fe9
commit 5ff505d246
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<%- @volunteers.each do |volunteer| -%>
<%= CSV.generate_line([volunteer.id,
volunteer.name,
volunteer.email,
"#{volunteer.confirmed_at.nil? ? '(unverified) ' : ''}#{volunteer.email}",
volunteer.language,
volunteer.unique_id,
volunteer.phone,

View File

@ -48,7 +48,7 @@
h4.media-heading
= volunteer.name
p
= icon(:envelope, volunteer.email)
= icon(volunteer.confirmed_at.present? ? "envelope" : "envelope-o", "#{volunteer.confirmed_at.nil? ? '(unverified) ' : ''}#{volunteer.email}")
td
= volunteer.volunteer_team.name
td.actions

View File

@ -38,7 +38,7 @@
h4 = t '.other_info'
= icon(:language, t("locales.#{@volunteer.language}"))
br
= icon(:envelope, @volunteer.email)
= icon(@volunteer.confirmed_at.present? ? "envelope" : "envelope-o", @volunteer.email)
br
= icon(:phone, @volunteer.phone.try(:phony_formatted, format: :international))
br