forked from ghostsquad/pycard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards.html.jinja2
37 lines (35 loc) · 1 KB
/
cards.html.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="{{css_file}}" />
{%- if custom_header %}{{ custom_header }}{% endif %}
<style>
body, html {
margin: 0;
padding: 0;
}
.pycard {
float: left;
position: relative;
}
@media print {
div {
page-break-inside: avoid;
}
}
</style>
</head>
<body>
{%- for card in rendered_cards %}
<div class="pycard">
{{ card }}
</div>
{%- endfor %}
</body>
</html>