Merge pull request #5991 from consuldemocracy/fix-poster
Fix PDF poster generated in dashboard
This commit is contained in:
@@ -545,6 +545,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.proposal-code {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.poster-content {
|
.poster-content {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<%= sanitize(t("dashboard.poster.index.intro_text", org: Setting["org_name"])) %>
|
<%= sanitize(t("dashboard.poster.index.intro_text", org: Setting["org_name"])) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="proposal-code">
|
||||||
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
||||||
</p>
|
</p>
|
||||||
<div class="proposal-image">
|
<div class="proposal-image">
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<p class="intro">
|
<p class="intro">
|
||||||
<%= sanitize(t("dashboard.poster.index.intro_text", org: Setting["org_name"])) %>
|
<%= sanitize(t("dashboard.poster.index.intro_text", org: Setting["org_name"])) %>
|
||||||
</p>
|
</p>
|
||||||
<p class="text-center proposal-code">
|
<p class="proposal-code">
|
||||||
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
||||||
</p>
|
</p>
|
||||||
<div class="proposal-image">
|
<div class="proposal-image">
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="poster-content">
|
<div class="poster-content">
|
||||||
<h2 class="text-center"><strong><%= t("dashboard.poster.index.support") %></strong></h2>
|
<h2><strong><%= t("dashboard.poster.index.support") %></strong></h2>
|
||||||
<%= wicked_pdf_image_tag "quote_before_blue.png", alt: "" %>
|
<%= wicked_pdf_image_tag "quote_before_blue.png", alt: "" %>
|
||||||
<h3><strong><%= proposal.title %></strong></h3>
|
<h3><strong><%= proposal.title %></strong></h3>
|
||||||
<%= wicked_pdf_image_tag "quote_after_blue.png", alt: "" %>
|
<%= wicked_pdf_image_tag "quote_after_blue.png", alt: "" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user