osem-fcy/app/views/conference/_tickets.html.haml

16 lines
602 B
Text
Raw Normal View History

2014-05-29 20:23:33 +05:30
%div.row
%h3 Tickets
-if @conference.splashpage.ticket_description.present?
2014-08-01 12:23:33 +05:30
.lead
= markdown(@conference.splashpage.ticket_description)
- @conference.tickets.each do |s|
2014-05-29 20:23:33 +05:30
%div.col-md-6
- if ticket.title.present?
%h4 #{ ticket.title }
- if ticket.description.present?
.lead
= markdown(ticket.description)
%div.btn-group
= link_to "Buy Ticket", conference_tickets_path(@conference.short_title), class: 'btn btn-success'
= button_tag "#{humanized_money_with_symbol ticket.price}", class: 'btn btn-success'