Changes to effect Issue2707
Adding a paragraph telling if there is no upcoming conference, and also hiding add to event calendar button if there is no conference.
This commit is contained in:
parent
fd01351a92
commit
8264cee099
1 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
@ -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 !@current.empty?
|
||||
%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