feat(attestation): render signature

This commit is contained in:
Colin Darie 2023-12-22 14:23:10 +01:00
parent 3b70b36d2d
commit 9c9daf162d
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
2 changed files with 15 additions and 0 deletions

View file

@ -141,6 +141,17 @@
margin: 0.25rem 0;
}
.signature {
text-align: right;
margin-top: 14mm;
margin-right: 25mm;
img {
max-height: 60mm;
max-width: 60mm;
}
}
.footer {
position: running(footer);
font-size: 7pt;

View file

@ -15,5 +15,9 @@
.main
= sanitize(@body, attributes: %w[class style], tags: Rails.configuration.action_view.sanitized_allowed_tags + %w[header])
- if @attestation_template.signature.present?
.signature
= image_tag(@attestation_template.signature_url)
- if @attestation_template.footer.present?
= simple_format @attestation_template.footer, class: "footer"