Happening now is broken
This commit is contained in:
parent
0c15d6091a
commit
839634e569
2 changed files with 6 additions and 7 deletions
|
|
@ -181,14 +181,13 @@ module EventsHelper
|
||||||
|
|
||||||
if current_user.roles.where(id: conference.roles).any?
|
if current_user.roles.where(id: conference.roles).any?
|
||||||
# Show Pre-Event links for any memeber of the conference team.
|
# 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')
|
event.url, target: '_blank')
|
||||||
elsif current_user.registered_to_event?(conference)
|
elsif current_user.registered_to_event?(conference)
|
||||||
if is_now
|
link_to('Join Live Event', event.url, target: '_blank')
|
||||||
link_to('Join Live Event', event.url, target: '_blank')
|
# else
|
||||||
else
|
# link_to('Live Event Link Coming Soon', '#')
|
||||||
link_to('Live Event Link Coming Soon', '#')
|
# end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
|
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
|
||||||
%h3
|
%h3
|
||||||
This page was loaded at
|
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)')}
|
#{Time.now.strftime('%a %b %d at %I:%M %P (%z)')}
|
||||||
%p
|
%p
|
||||||
P.S. This page is in beta, and if it doesn't make sense, we're sorry.
|
P.S. This page is in beta, and if it doesn't make sense, we're sorry.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue