-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Content updates to event information page / prevent 2d scrolling (#4062)
* Content updates to event information page reduce possibility for 2d scrolling * spec fixes * Remove CTA register button Temporary fix for 2D scroll issue
- Loading branch information
Showing
6 changed files
with
28 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,20 @@ | ||
<% | ||
if @event.open? && [ | ||
can_sign_up_online?(@event), | ||
is_event_type?(@event, "School or University event"), | ||
@event.provider_website_url, | ||
@event.provider_contact_email | ||
].any? | ||
%> | ||
<% if @event.open? && can_sign_up_online?(@event) %> | ||
<section class="teaching-event__how-to-attend"> | ||
<h2>How to attend</h2> | ||
|
||
<% if can_sign_up_online?(@event) %> | ||
<% if @event.in_person? %> | ||
<% if @event.in_person? %> | ||
<p> | ||
Register for this event to secure your place and check in faster on arrival using a QR code. | ||
</p> | ||
<% end %> | ||
<% if @event.online? %> | ||
<p> | ||
Register for this event and you'll receive joining | ||
instructions via email. | ||
</p> | ||
|
||
<% elsif @event.online? %> | ||
<p> | ||
For the best experience when accessing this event, we recommend using Google Chrome on a laptop or desktop PC. | ||
Register for this event and you'll receive joining instructions via email. | ||
</p> | ||
<% end %> | ||
<%= render(partial: 'teaching_events/show/register-button') %> | ||
<% elsif is_event_type?(@event, "School or University event") %> | ||
<p> | ||
To register for this event, follow the instructions in the event information section. | ||
</p> | ||
<% elsif @event.provider_website_url %> | ||
<p> | ||
To attend this event, please <%= link_to("visit this website", @event.provider_website_url) %>. | ||
</p> | ||
<% elsif @event.provider_contact_email %> | ||
<p> | ||
To attend this event, please | ||
<%= mail_to(@event.provider_contact_email, "email us") %>. | ||
For the best experience when accessing this event, we recommend using Google Chrome on a laptop or desktop PC. | ||
</p> | ||
<% end %> | ||
<%= render(partial: 'teaching_events/show/online-register-button') %> | ||
</section> | ||
<% end %> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters