mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-14 21:06:43 +00:00
This makes the card generation process a bit easier to customize. A few issues with Chrome page breaks were also fixed.
81 lines
2.3 KiB
HTML
81 lines
2.3 KiB
HTML
{# Feel free to customize or override anything in there! #}
|
|
{%- set url = "http://container.training/" -%}
|
|
{%- if clustersize == 1 -%}
|
|
{%- set workshop_name = "Docker" -%}
|
|
{%- set pagesize = 15 -%}
|
|
{%- set cluster_or_machine = "machine" -%}
|
|
{%- set this_or_each = "this" -%}
|
|
{%- set machine_is_or_machines_are = "machine is" -%}
|
|
{%- set background_image = "https://s3-us-west-2.amazonaws.com/www.breadware.com/integrations/docker.png" -%}
|
|
{%- else -%}
|
|
{%- set workshop_name = "orchestration" -%}
|
|
{%- set pagesize = 12 -%}
|
|
{%- set cluster_or_machine = "cluster" -%}
|
|
{%- set this_or_each = "each" -%}
|
|
{%- set machine_is_or_machines_are = "machines are" -%}
|
|
{%- set background_image = "https://cdn.wp.nginx.com/wp-content/uploads/2016/07/docker-swarm-hero2.png" -%}
|
|
{%- endif -%}
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
div {
|
|
float: left;
|
|
border: 1px dotted black;
|
|
width: 27%;
|
|
padding: 6% 2.5% 2.5% 2.5%;
|
|
font-size: x-small;
|
|
line-height: 1em;
|
|
background-image: url("{{background_image}}");
|
|
background-size: 13%;
|
|
background-position-x: 50%;
|
|
background-position-y: 5%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
p {
|
|
margin: 0.5em 0 0.5em 0;
|
|
}
|
|
|
|
.pagebreak {
|
|
page-break-after: always;
|
|
clear: both;
|
|
display: block;
|
|
height: 8px;
|
|
}
|
|
</style></head>
|
|
<body>
|
|
{% for cluster in clusters %}
|
|
{% if loop.index0>0 and loop.index0%pagesize==0 %}
|
|
<span class="pagebreak"></span>
|
|
{% endif %}
|
|
<div>
|
|
<p>
|
|
Here is the connection information to your very own
|
|
{{ cluster_or_machine }} for this {{ workshop_name }} workshop.
|
|
You can connect to {{ this_or_each }} VM with any SSH client.
|
|
</p>
|
|
<p>
|
|
Your {{ machine_is_or_machines_are }}:
|
|
<ul>
|
|
{% for node in cluster %}
|
|
<li>node{{ loop.index }}: {{ node }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</p>
|
|
<p>
|
|
login: <b><code>docker</code></b>
|
|
<br/>
|
|
password: <b><code>training</code></b>
|
|
</p>
|
|
<p>For slides, chat and other useful links, see:
|
|
<center>{{ url }}</center>
|
|
</p>
|
|
</div>
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|