Created
July 2, 2012 15:40
-
-
Save okeen/3033846 to your computer and use it in GitHub Desktop.
ticket.haml
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
!!! | |
%html | |
%head | |
%style{type:'text/css'} | |
= Fikket::Application.assets.find_asset('email.css').body | |
%meta{charset:'utf-8'} | |
%body.ticket_pdf | |
%table | |
%tbody | |
%tr | |
%td{colspan:2} | |
.ibbt_info | |
%p www.creativemediadays.be | |
%p [email protected] | |
%h1= t '.your_ticket' | |
%tr | |
%td{colspan:2} | |
%table | |
%tbody | |
%tr | |
%td{width:"50%"}.event_logo | |
- if @event.mailing_config.logo.file? | |
= wicked_pdf_image_tag @event.mailing_config.logo.to_file, class: "logo" unless attachments["ticket.pdf"].present? | |
= image_tag @event.mailing_config.logo.url(:regular), class: "logo" if attachments["ticket.pdf"].present? | |
%td{width:"50%"}.main_logo | |
= wicked_pdf_image_tag File.new("#{Rails.root}/app/assets/images/ibbt/logo.jpg")unless attachments["ticket.pdf"].present? | |
= image_tag image_path("ibbt/logo.jpg") if attachments["ticket.pdf"].present? | |
%tr | |
%td#message_from_organizer{colspan:2} | |
%p= raw t('.message_from_organizer.intro') | |
%h4= t(".message_from_organizer.get_together.title") | |
%p= raw t('.message_from_organizer.get_together.content', | | |
link: link_to(t(".message_from_organizer.get_together.link"),"http://www.creativemediadays.be/user/register?secretkey=#{@ticket.attendee_uuid}" )) | |
%h4= t(".message_from_organizer.hotels.title") | |
%p= raw t('.message_from_organizer.hotels.content') | |
-#= simple_format @event.mailing_config.ticket_mail | |
%tr | |
%td | |
%strong | |
%p= t '.event_info' | |
%td | |
%p= link_to mailer_event_sellout_url(@event), mailer_event_sellout_url(@event) | |
%tr | |
%td | |
%strong | |
%p= t '.when' | |
%td | |
%p= dates_text_for @event | |
%tr | |
%td | |
%strong | |
%p= t '.where' | |
%td= simple_format @event.location | |
%tr | |
%td | |
%strong | |
%p= t '.who' | |
%td | |
%p= "#{@ticket.first_name} #{@ticket.last_name}" | |
%tr | |
%td | |
%strong | |
%p= t '.price' | |
%td | |
%p= ticket_price_text_for(@ticket) | |
%tr | |
%td | |
%strong | |
%p= t '.type' | |
%td | |
%p= ticket_type_text_for(@ticket) | |
%tr | |
%td | |
%strong | |
%p= t '.barcode' | |
%td | |
= wicked_pdf_image_tag @barcode_file if @barcode_file.present? | |
= image_tag attachments["barcode.png"].url if attachments["barcode.png"].present? | |
%br | |
= "#{@ticket.code}" | |
%tr | |
%td | |
%strong | |
%p= t '.ticket_information' | |
%td | |
%p= link_to "http://www.ibbt.be/downloads/TicketingInformation.pdf","http://www.ibbt.be/downloads/TicketingInformation.pdf", target: "_blank" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment