diff --git a/_layouts/device.html b/_layouts/device.html index 51adcf34fe1b86dc6a06fc531805a0dd0c211d7a..de04718898a93e44a68f9093b553aa9663509995 100644 --- a/_layouts/device.html +++ b/_layouts/device.html @@ -7,9 +7,11 @@ layout: default <main class="main container"> <div class="content-up"> <article class="article--page typeset"> + <div class="not-in-print"> <h4 id="{{page.uid}}">{{page.name}}</h4> </div> + <div class="only-in-print"> <img style="float: right; height: 50px; padding-top: 20px; padding-right: 10px;" src="{{ site.url }}/assets/logo.png"> <div style=" @@ -24,10 +26,12 @@ layout: default <h1 style="color: white">{{page.name}}</h1> </div> </div> + {% if page.safetybriefing -%} {% assign tuid = page.uid %} {% include {{site.einweisung}} tuid=tuid%} {% endif -%} + {% for briefing in site.briefing -%} {% if briefing.inventory_uid == page.uid -%} <div class="only-in-print" style="min-height: {{briefing.size-on-poster}}px; max-height: {{briefing.size-on-poster}}px; overflow: hidden;"> @@ -37,6 +41,7 @@ layout: default </div> {% endif -%} {% endfor -%} + {% if page.contact -%} Ansprechpersonen: <div class="toolcontact" id="toolcontact"> @@ -46,15 +51,19 @@ layout: default {% endfor -%} </ul> </div> - <div class="not-in-print"> {% endif -%} + + <div class="not-in-print"> {% if page.manual -%} <img src="{{ site.url }}/assets/iso7010/M002.svg" alt="{{c}}" style="height: 1em"> <a href="{{page.manual}}">Bedienungsanleitung</a> {% endif -%} + <p> {{page.content}}</p> + {%- if page.imagetag -%} {%- include {{site.gallery}} topic=page.imagetag -%} {%- endif -%} {% if page.wikilink %}<p>Mehr infos findest du im <a href="{{page.wikilink}}">Wiki</a>.</p>{% endif %} </div> + <div style=" margin: auto; background-color: #fafafa; @@ -79,32 +88,42 @@ layout: default </div> {% endif -%} </div> + <div class="url-for-print" style="float: left; margin-bottom:0px;"> - <div id="qrcode" style="width: 150px;"></div> + <div id="qrcode" style="width: 150px;"> + </div> <p><a href="{{ site.url }}{{ page.url }}">chaotikum.org</a></p> </div> + {% if page.safetybriefing -%} <div class="url-for-print" style="float: right; margin-bottom:0px;"> - <div id="qrcode2" style="width: 150px;"></div> + <div id="qrcode2" style="width: 150px;"> + </div> <p>Sicherheitseinweisung</p> </div> {% endif -%} + {% if page.manual -%} <div class="url-for-print" style="float: right; margin-left: 10px; margin-bottom:0px;"> - <div id="qrcode3" style="width: 150px;"></div> + <div id="qrcode3" style="width: 150px;"> + </div> <p>Bedienungsanleitung</p> </div> {% endif -%} - </div> - </article> + + </div> + + </article> {%- if page.sets contains 'leihbar' -%} <div id="calendar"></div> </div> {% endif %} + </div> </main> {% include site-footer.html %} + <script type="text/javascript"> new QRCode(document.getElementById("qrcode"), {text: "{{ site.url }}{{ page.url }}", width: 128, height: 128}); </script> diff --git a/assets/jekyll.jpg b/assets/jekyll.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1f6093ed34c2e048c4ad943c80e76e48d427dba9 Binary files /dev/null and b/assets/jekyll.jpg differ