Sha256: 76dd6090f79cdef84a612386b16c05854c0131c68597e3470e51868f4d6e3285

Contents?: true

Size: 964 Bytes

Versions: 26

Compression:

Stored size: 964 Bytes

Contents

<style>

  .mu-certificate-box {
    overflow: hidden;
    height: 210mm;
    width: 297mm;
    max-height: 210mm;
    max-width: 297mm;
    min-height: 210mm;
    min-width: 297mm;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    border: 1px solid lightgrey;
  }

  .mu-certificate-box section {
    background: transparent;
    z-index: 10;
  }

  .background-image {
    position: absolute;
    height: 210mm;
    width: 297mm;
    margin: 0;
    padding: 0;
    z-index: 0;
  }

  .qr-code {
    position: absolute;
    z-index: 10;
  }

</style>

<div class="mu-certificate-box">
  <img src="<%= certificate.background_image_url %>" class="background-image"/>
  <%= render inline: certificate.template_html_erb, locals: certificate.template_locals %>
  <a href="<%= verify_certificate_url certificate.organization, certificate.code %>" target="_blank">
    <div><img class="qr-code" src="<%= qr_for certificate %>"/></div>
  </a>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.22.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.21.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.20.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.20.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.19.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.18.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.18.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.17.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.16.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.15.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.14.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.14.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.13.2 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.13.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.13.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.12.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.12.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.11.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.10.0 app/views/certificates/_certificate.html.erb