-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
9 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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 | ||
|