[feat] show alert when user has 0 ticket purchases

This commit is contained in:
rajavi-mishra 2021-04-30 00:23:47 -07:00 committed by CactusPuppy
parent 33f5941fbb
commit e2245001d4
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

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