-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add json-ld and simple sub pages for event and bars
- Loading branch information
1 parent
a61cab4
commit f7c1fe7
Showing
9 changed files
with
186 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>{{ bar.name }}</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<div class="d-flex justify-content-center"> | ||
|
||
<div style="max-width: 450px" class="col-12"> | ||
{% include "./event_card.html" %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% load imagekit %} | ||
<div class="card"> | ||
<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> | ||
</span> | ||
</div> | ||
{% if event.poster %} | ||
{% generateimage 'studibars:poster1x' source=event.poster as img1 %} | ||
{% generateimage 'studibars:poster1_5x' source=event.poster as img1_5 %} | ||
{% generateimage 'studibars:poster2x' source=event.poster as img2 %} | ||
<img alt="Bild {{ event.name }}" src="{{ img1.url }}" | ||
srcset="{{ img1.url }}, {{ img1_5.url }} 1.5x, {{ img2.url }} 2x" | ||
width="{{ img1.width }}" height="{{ img1.height }}" | ||
class="w-100 h-auto" loading="lazy" | ||
> | ||
{% endif %} | ||
{% if event.description or not event.poster %} | ||
<div class="card-body"> | ||
<h3 class="card-title">{{ event.name }}</h3> | ||
{% if event.description %} | ||
<p class="card-text">{{ event.description }}</p> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
<div class="card-footer"> | ||
<small class="text-body-secondary d-flex justify-content-between"> | ||
<a target="_blank" class="text-decoration-none" | ||
href="https://maps.google.com/?q={{ event.bar.name }}, {{ event.bar.street }}, {{ event.bar.zip_code }} {{ event.bar.city }}"> | ||
{{ event.bar.street }} | ||
</a> | ||
<span>{{ event.start_date|date:"d.m." }} ab {{ event.start_date|date:"H:i" }}</span> | ||
</small> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters