Merge pull request #77 from CactusPuppy/176895045-clarify-registration-status-somehow

176895045 clarify registration status somehow
This commit is contained in:
Rajavi Mishra 2021-05-01 17:35:12 -07:00 committed by GitHub
commit 7ae22d6d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 0 deletions

View file

@ -1,6 +1,11 @@
- cache [conference, venue, '#splash#header'] do
#banner{ style: ("background-image: url(#{conference.picture_url})" if conference.picture_url) }
.container
- if user_signed_in?
- if current_user.ticket_purchases.by_conference(@conference).empty?
.alert.bg-info{ :role => "alert", :style => "margin-bottom: 100px" }
You have not purchased any tickets for this conference yet.
= link_to "Book your tickets now!", "#tickets"
.row
.col-md-6.col-md-offset-3{ id: (conference.picture? ? "header-image" : "header-no-image") }
.row