Add message when no upcoming conferences are available
When there are no upcoming conferences, the page now displays a friendly message informing users that there are no conferences at this time and inviting them to check back later or browse past conferences. Additionally, the calendar export buttons are now conditionally displayed only when there are conferences (current or past) available. Fixes #2707 Co-Authored-By: Claude (claude-opus-4-5) <noreply@anthropic.com>
This commit is contained in:
parent
901070f7e5
commit
9473946c86
1 changed files with 15 additions and 7 deletions
|
|
@ -3,8 +3,15 @@
|
|||
.col-md-12
|
||||
.page-header
|
||||
%h2 Upcoming Conferences
|
||||
- @current.each do |conference|
|
||||
= render '/conferences/conference_details', conference: conference
|
||||
- if @current.any?
|
||||
- @current.each do |conference|
|
||||
= render '/conferences/conference_details', conference: conference
|
||||
- else
|
||||
.row
|
||||
.col-md-12
|
||||
.well.text-center
|
||||
%h4 There are no upcoming conferences at this time.
|
||||
%p Check back later for updates or browse our past conferences below.
|
||||
- if @antiquated and @antiquated.any?
|
||||
.row
|
||||
.col-md-12
|
||||
|
|
@ -18,11 +25,12 @@
|
|||
#antiquated.collapse
|
||||
- @antiquated.each do |conference|
|
||||
= render '/conferences/conference_details', conference: conference
|
||||
%p
|
||||
Add the events to your calendar:
|
||||
%span.btn-group
|
||||
= link_to("Days only", calendar_url(protocol: 'webcal', format: 'ics'), class: 'btn btn-default')
|
||||
= link_to("Detailed", calendar_url(protocol: 'webcal', format: 'ics', full: true), class: 'btn btn-default')
|
||||
- if @current.any? || (@antiquated && @antiquated.any?)
|
||||
%p
|
||||
Add the events to your calendar:
|
||||
%span.btn-group
|
||||
= link_to("Days only", calendar_url(protocol: 'webcal', format: 'ics'), class: 'btn btn-default')
|
||||
= link_to("Detailed", calendar_url(protocol: 'webcal', format: 'ics', full: true), class: 'btn btn-default')
|
||||
|
||||
-content_for :script_body do
|
||||
:javascript
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue