Skip to content

Commit

Permalink
Show at most 7 events in event list
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Jun 13, 2024
1 parent 86c4ddb commit 062e339
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/templates/main/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="display-5 fw-bold">Studi Bars Aachen</h1>
</div>
<div class="col-12 col-md-4">
<div class="list-group list-group-flush mb-4">
{% for event in events %}
{% for event in events|slice:":7" %}
<a href="#event-{{ event.id }}"
class="list-group-item list-group-item-action d-flex justify-content-between">
<span>{{ event.name }}</span>
Expand Down Expand Up @@ -227,7 +227,9 @@ <h5 class="text-nowrap text-black">{{ bar.name }}</h5>
<div class="card-header d-flex justify-content-between">
<span class="fw-bold">{{ event.bar }}</span>
<span>{{ event.start_date|date:"d.m." }} ab {{ event.start_date|date:"H:i" }}
<a class="align-middle" href="{% url 'download_event_ics' event_id=event.id %}"><i class="bi bi-calendar-plus align-top"></i></a>
<a class="align-middle" href="{% url 'download_event_ics' event_id=event.id %}">
<i class="bi bi-calendar-plus align-top"></i>
</a>
</span>
</div>
{% if event.poster %}
Expand Down

0 comments on commit 062e339

Please sign in to comment.