Skip to content
Snippets Groups Projects
space-status.html 1001 B
Newer Older
Lukas Ruge's avatar
Lukas Ruge committed
{%- capture nowunix %}{{'now' | date: '%s'}}{% endcapture -%}
{%- assign show_event = 2 -%}
{%- for e in site.events -%}
    {%- capture event_start_plus %}{{e.eventdate  | date: '%s' | minus: 259200 }}{%- endcapture -%}
    {%- capture event_start %}{{e.eventdate  | date: '%s' }}{%- endcapture -%}
Lukas Ruge's avatar
Lukas Ruge committed
    {%- if event_start_plus < nowunix and event_start > nowunix and show_event > 1 -%}
      {%- if e.nofrontpage == nil or e.nofrontpage == '' -%}
        <div id="event_soon"  style="margin-top: 5px;">
          <b>🗓</b>
          {%- assign show_event = 0 - %}<p id="nextevent"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>
        </div>
      {% endif -%}
    {% endif -%}
Lukas Ruge's avatar
Lukas Ruge committed
{%- endfor -%}
Lukas Ruge's avatar
Lukas Ruge committed
<div id="spaceopen" class="chaotikum-about">
Lukas Ruge's avatar
Lukas Ruge committed
  Ob der Nobreakspace offen ist siehst du <a href='https://status.nobreakspace.org' target='_blank'>hier</a><p>Oder aktiviere Javascript</p>
Lukas Ruge's avatar
Lukas Ruge committed
</div>
Lukas Ruge's avatar
Lukas Ruge committed
<div class="presence" id="presence" style="width: 80%; margin:0 auto; margin-top: -20px;">
</div>