Happening now is broken

This commit is contained in:
Michael Ball 2020-07-31 10:16:21 -07:00
parent 0c15d6091a
commit 839634e569
2 changed files with 6 additions and 7 deletions

View file

@ -181,14 +181,13 @@ module EventsHelper
if current_user.roles.where(id: conference.roles).any?
# Show Pre-Event links for any memeber of the conference team.
link_to("Join Live Event #{'(Pre-Event)' unless is_now}",
link_to("Join Live Event",
event.url, target: '_blank')
elsif current_user.registered_to_event?(conference)
if is_now
link_to('Join Live Event', event.url, target: '_blank')
else
link_to('Live Event Link Coming Soon', '#')
end
# else
# link_to('Live Event Link Coming Soon', '#')
# end
end
end

View file

@ -22,7 +22,7 @@
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
%h3
This page was loaded at
= inyourtz(Time.now, @conference.timezone)
= inyourtz(Time.now, @conference.timezone) do
#{Time.now.strftime('%a %b %d at %I:%M %P (%z)')}
%p
P.S. This page is in beta, and if it doesn't make sense, we're sorry.