Created
November 6, 2012 12:46
-
-
Save Jesterovskiy/4024416 to your computer and use it in GitHub Desktop.
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
header.program-pdf { | |
table.items { | |
.tr { | |
background-color: inherit; | |
background-image: none; | |
} | |
} | |
} |
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
<header class="program-pdf"> | |
<h2><%= @conference.date_finish>Time.current ? t(:preliminary_program_of_the_conference) : t(:program_of_the_conference)%></h2> | |
<h3>"<%= @conference.title %>"</h3> | |
<h4><%= date_start_finish_for(@conference) %></h4> | |
<table class="items"> | |
<tr> | |
<% @sponsors.map do |sponsor| %> | |
<td><%= sponsor.first %>:</td> | |
<% sponsor.second.map do |sponsor| %> | |
<td><%= pdf_image_tag(sponsor.logo.to_s, width: "100") if sponsor.logo.present? %></td> | |
<%end%> | |
</tr> | |
<%end%> | |
</table> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment