1
0

Fix link preview, tobacco order and month names

This commit is contained in:
Marcel Schwarz 2022-08-08 17:48:13 +02:00
parent d6e48d13d7
commit 3b8234f9c0
4 changed files with 10 additions and 7 deletions

View File

@ -6,6 +6,7 @@ services:
build:
context: ../../
dockerfile: Deployment/Live/Dockerfile.python
restart: "unless-stopped"
command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:12000
volumes:
- ../../clubhaus:/usr/src/app

View File

@ -10,10 +10,10 @@
<meta property="og:site_name" content="{% block site_name %}Clubhaus Schornbach{% endblock %}">
<meta property="og:title" content="{% block title %}Clubhaus Schornbach{% endblock %}">
<meta property="og:description" content="Clubhaus Schornbach - est. 2007">
<meta property="og:image"
content="https://{{ request.get_host }}{% static 'homepage/logo-with-text.svg' %}">
<meta property="og:type" content="website"/>
<meta property="og:image:type" content="image/svg+xml">
<meta name="image" property="og:image"
content="https://{{ request.get_host }}{% static 'homepage/image01.jpg' %}">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="300">
<meta property="og:image:height" content="300">
<meta property="og:url" content="https://{{ request.get_host }}">

View File

@ -103,9 +103,11 @@
<thead>
<tr>
<th scope="col">Name</th>
{% language 'de' %}
{% for dateOption in dates %}
<th scope="col">{{ dateOption.date|date:'d. F' }}</th>
{% endfor %}
{% endlanguage %}
</tr>
</thead>
<tbody class="table-group-divider">

View File

@ -26,7 +26,7 @@ def cookies(request: HttpRequest) -> django.http.HttpResponse:
def tobacco(request: HttpRequest) -> django.http.HttpResponse:
context = {'tobaccos': Tobacco.objects.all().order_by('-in_stock')}
context = {'tobaccos': Tobacco.objects.all().order_by('-in_stock', "category__name", "name")}
return render(request, 'homepage/tobacco.html', context)