Skip to content
Snippets Groups Projects
Commit d9de17e8 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

more info on infra components

parent 9e0d9388
No related branches found
No related tags found
No related merge requests found
Pipeline #32906 passed
...@@ -7,15 +7,59 @@ layout: default ...@@ -7,15 +7,59 @@ layout: default
<main class="main container"> <main class="main container">
<div class="content-up"> <div class="content-up">
<article class="article--page typeset"> <article class="article--page typeset">
{% if page.sets contains 'software' -%}
<h4 id="{{page.uid}}"><span class="fa-solid fa-microchip"></span> {{page.name}}</h4>
{% elsif page.sets contains 'server' -%}
<h4 id="{{page.uid}}"><span class="fa-solid fa-server"></span> {{page.name}}</h4>
{% elsif page.sets contains 'environment' -%}
<h4 id="{{page.uid}}"><span class="fa-solid fa-box"></span> {{page.name}}</h4>
{% else -%}
<h4 id="{{page.uid}}">{{page.name}}</h4>
{% endif -%}
{% if page.parent -%}
{% for p in site.inventory -%}
{% if p.uid == page.parent -%}
{% if p.sets contains 'software' %}
<p> ↳ in <a href="{{ site.url }}{{p.url}}"><span class="fa-solid fa-microchip"></span> {{p.name}} </a></p>
{% elsif p.sets contains 'server' -%}
<p> ↳ in <a href="{{ site.url }}{{p.url}}"><span class="fa-solid fa-server"></span> {{p.name}} </a></p>
{% elsif p.sets contains 'environment' -%}
<p> ↳ in <a href="{{ site.url }}{{p.url}}"><span class="fa-solid fa-box"></span> {{p.name}} </a></p>
{% else -%}
<p> ↳ in <a href="{{ site.url }}{{p.url}}">{{p.name}} </a></p>
{% endif -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% if page.wikilink %}<p>Mehr infos findest du im <a href="{{page.wikilink}}">Wiki</a>.</p>{% endif %} <p> {{page.content}} </p>
{% if page.wikilink -%}<p>Mehr infos findest du im <a href="{{page.wikilink}}">Wiki</a>.</p>{% endif -%}
</article>
<h2>Informationen zur verfügbarkeit der Infrastrukturkomponente</h2>
<h2>Wartungstermine</h2>
{% assign component = page -%} {% assign component = page -%}
{% include {{site.infrainfo}} %} {% include {{site.infrainfo}} %}
{% assign mcollection = site.maintenance | where_exp: "m", "m.components contains page.uid" | sort: 'eventdate' | reverse %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture -%}
{% for m in mcollection -%}
{% capture posttime %}{{m.eventdate | date: '%s'}}{% endcapture %}
{% if posttime > nowunix -%}
<h4><span class="fas fa-toolbox"></span> {{m.title}} ({{ m.eventdate | date: "%d.%m.%Y" }}) </h4>
<p>Start: {{ m.eventdate | date: "%d.%m.%Y %H:%M" }}</p>
<p>End: {{ m.eventend | date: "%d.%m.%Y %H:%M" }}</p>
<a href="{{site.url }}{{m.url}}">more.</a>
<hr>
{% else -%}
<h4 style="color: E0E0E0; "><span class="fas fa-toolbox"></span> {{m.title}} ({{ m.eventdate | date: "%d.%m.%Y" }}) </h4>
<p>Start: {{ m.eventdate | date: "%d.%m.%Y %H:%M" }}</p>
<p>End: {{ m.eventend | date: "%d.%m.%Y %H:%M" }}</p>
<a href="{{site.url }}{{m.url}}">more.</a>
<hr>
{% endif -%}
{% endfor %}
</article>
<div id="calendar"></div> <div id="calendar"></div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment