Sha256: 9f64ae7ee8e18a002c2b4a287932040056812b66d7c85293cd4d9f18568b576a

Contents?: true

Size: 939 Bytes

Versions: 18

Compression:

Stored size: 939 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_path certificate.code %>" target="_blank">
    <div><img class="qr-code" src="<%= qr_for certificate %>"/></div>
  </a>
</div>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-laboratory-9.7.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.6.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.5.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.5.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.4.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.4.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.3.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.3.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.2.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.1.3 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.1.2 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.1.1 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.1.0 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.0.6 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.0.5 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.0.4 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.0.3 app/views/certificates/_certificate.html.erb
mumuki-laboratory-9.0.2 app/views/certificates/_certificate.html.erb