Fix link preview, tobacco order and month names
This commit is contained in:
parent
d6e48d13d7
commit
3b8234f9c0
@ -6,6 +6,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ../../
|
context: ../../
|
||||||
dockerfile: Deployment/Live/Dockerfile.python
|
dockerfile: Deployment/Live/Dockerfile.python
|
||||||
|
restart: "unless-stopped"
|
||||||
command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:12000
|
command: gunicorn clubhaus.wsgi:application --bind 0.0.0.0:12000
|
||||||
volumes:
|
volumes:
|
||||||
- ../../clubhaus:/usr/src/app
|
- ../../clubhaus:/usr/src/app
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
<meta property="og:site_name" content="{% block site_name %}Clubhaus Schornbach{% endblock %}">
|
<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:title" content="{% block title %}Clubhaus Schornbach{% endblock %}">
|
||||||
<meta property="og:description" content="Clubhaus Schornbach - est. 2007">
|
<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: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:width" content="300">
|
||||||
<meta property="og:image:height" content="300">
|
<meta property="og:image:height" content="300">
|
||||||
<meta property="og:url" content="https://{{ request.get_host }}">
|
<meta property="og:url" content="https://{{ request.get_host }}">
|
||||||
|
@ -103,9 +103,11 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
{% for dateOption in dates %}
|
{% language 'de' %}
|
||||||
<th scope="col">{{ dateOption.date|date:'d. F' }}</th>
|
{% for dateOption in dates %}
|
||||||
{% endfor %}
|
<th scope="col">{{ dateOption.date|date:'d. F' }}</th>
|
||||||
|
{% endfor %}
|
||||||
|
{% endlanguage %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="table-group-divider">
|
<tbody class="table-group-divider">
|
||||||
|
@ -26,7 +26,7 @@ def cookies(request: HttpRequest) -> django.http.HttpResponse:
|
|||||||
|
|
||||||
|
|
||||||
def tobacco(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)
|
return render(request, 'homepage/tobacco.html', context)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user