scinote-web/app/views/reports/header.pdf.erb
2020-07-14 09:44:03 +02:00

33 lines
1 KiB
Text

<!doctype html>
<html>
<head>
<meta charset='utf-8' />
<%= wicked_pdf_stylesheet_link_tag "application" %>
<%= wicked_pdf_stylesheet_link_tag "reports_pdf" %>
<%= bootstrap_cdn_link_tag %>
<%= font_awesome_cdn_link_tag %>
<script>
function number_pages() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = decodeURIComponent(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body class="print-header-body" onload="number_pages()" style="height: 50px;">
<div class="print-header">
<div class="logo-img">
<%= image_tag wicked_pdf_asset_base64('logo.png') %>
</div>
<div class="page-numbers">
Page <span class="page"></span> of <span class="topage"></span>
</div>
</div>
</body>
</html>