[feat] show alert when user has 0 ticket purchases
This commit is contained in:
parent
33f5941fbb
commit
e2245001d4
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
- cache [conference, venue, '#splash#header'] do
|
- cache [conference, venue, '#splash#header'] do
|
||||||
#banner{ style: ("background-image: url(#{conference.picture_url})" if conference.picture_url) }
|
#banner{ style: ("background-image: url(#{conference.picture_url})" if conference.picture_url) }
|
||||||
.container
|
.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
|
.row
|
||||||
.col-md-6.col-md-offset-3{ id: (conference.picture? ? "header-image" : "header-no-image") }
|
.col-md-6.col-md-offset-3{ id: (conference.picture? ? "header-image" : "header-no-image") }
|
||||||
.row
|
.row
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue