Skip to content

Commit

Permalink
Stołówka + autorozciąganie kolumn na miejsce pustych sal
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor committed Jun 21, 2024
1 parent 88095ed commit 952bb44
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions _pages/talks.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@
starttime: "2024-09-08 07:30:00"
endtime: "2024-09-08 08:45:00"
room:
- a
- b
- c
- d
- s
where_exactly: "Stołówka"
where_exactly_geourl: "geo:51.470696420106776,18.84896063210119"
notitlelink: "yes"
Expand Down Expand Up @@ -177,12 +174,17 @@ <h1>Talks Schedule</h1>
{% for date in talks_by_date %}
<h2>{{ date.name }}</h2>
<div class="talks-grid">
{% assign rooms = "a,b,c,d" | split: ',' %}
{% assign rooms = "a,b,c,d,s" | split: ',' %}
{% for room in rooms %}
<div class="room-column">
<h3>Sala {{ room | upcase }}</h3>
{% assign room_talks = date.items | where: "room", room %}
{% if room_talks.size > 0 %}
{% assign room_talks = date.items | where: "room", room %}
{% if room_talks.size > 0 %}
<div class="room-column">
{%if room != "s" %}
<h3>Sala {{ room | upcase }}</h3>
{%else%}
<h3>Stołówka</h3>
{% endif %}

<ul>
{% for talk in room_talks %}
<li class="{{ talk.class }}">
Expand Down Expand Up @@ -212,17 +214,11 @@ <h3>Sala {{ room | upcase }}</h3>
<br>
{% endfor %}
Kiedy: {{ talk.starttime | date: "%H:%M" }} - {{ talk.endtime | date: "%H:%M" }}<br>
{% if talk.artificial_event %}
{% else %}
<!-- <a href="/talks/{{talk.ics_slug}}.ics">Dodaj do kalendarza</a> -->
{% endif%}
</li>
{% endfor %}
</ul>
{% else %}
<p>No talks scheduled.</p>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>

Expand Down Expand Up @@ -266,4 +262,4 @@ <h3>Inne</h3>
<p>No talks scheduled.</p>
{% endif %}
</div>
{% endfor %}
{% endfor %}

0 comments on commit 952bb44

Please sign in to comment.