Skip to content

Commit

Permalink
Changes to effect Issue2707
Browse files Browse the repository at this point in the history
Adding a paragraph telling if there is no upcoming conference, and also hiding add to event calendar button if there is no conference.
  • Loading branch information
airbr authored Dec 20, 2022
1 parent 5652e41 commit d13643b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/views/conferences/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
%h2 Upcoming Conferences
- @current.each do |conference|
= render '/conferences/conference_details', conference: conference
- if @antiquated and @antiquated.any?
- if @current.empty?
%h4 No Upcoming Conference Scheduled
- if @antiquated and @antiquated.any?
.row
.col-md-12
%p.text-right
Expand All @@ -18,11 +20,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 [email protected]?
%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
Expand Down

0 comments on commit d13643b

Please sign in to comment.