- Created new quotation marks without svg - Greater flexibility - Fix font Lato in PDF - change font family in pdf_font
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<%= wicked_pdf_stylesheet_link_tag 'application' -%>
|
|
<%= wicked_pdf_stylesheet_link_tag 'pdf_fonts' -%>
|
|
</head>
|
|
<body class="dashboard-poster-pdf">
|
|
<div class="poster-header">
|
|
<h1>
|
|
<%= t("dashboard.poster.index.poster_title") %>
|
|
<br>
|
|
<%= wicked_pdf_image_tag 'finger.svg' %>
|
|
<%= t("dashboard.poster.index.poster_subtitle") %>
|
|
</h1>
|
|
|
|
<p class="intro">
|
|
<%= t("dashboard.poster.index.intro_text").html_safe %>
|
|
</p>
|
|
<p class="text-center proposal_code">
|
|
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
|
</p>
|
|
|
|
<div class="proposal-image">
|
|
<% if proposal.image.present? %>
|
|
<div class="overflow-image" style="background-image:url('<%= "file://#{Rails.root.join('app','assets', proposal.image.attachment.url(:large), )}" %>');"></div>
|
|
<%#= wicked_pdf_image_tag proposal.image.attachment.url(:large) %>
|
|
<% else %>
|
|
<div class="overflow-image" style="background-image:url('<%= "file://#{Rails.root.join('app','assets','images','default_mailing.jpg')}" %>');"></div>
|
|
<%#= wicked_pdf_image_tag "default_mailing.jpg" %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="poster-content">
|
|
<h2 class="text-center"><%= t("dashboard.poster.index.support") %></h2>
|
|
<div class="quote">
|
|
<blockquote class="curly-quotes">
|
|
<h3><%= proposal.title %></h3>
|
|
</blockquote>
|
|
</div>
|
|
<p class="poster-footer"><%= t("dashboard.poster.index.footer").html_safe %></p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|