diff --git a/Dockerfile b/Dockerfile index 307028d..399ed3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 USER appuser EXPOSE 8000 -RUN rm -rf /app/Dockerfile* \ +RUN rm -rvf /app/Dockerfile* \ /app/README.md \ /app/argocd \ /app/k8s \ @@ -31,6 +31,6 @@ RUN rm -rf /app/Dockerfile* \ /app/node_modules \ /app/*.json \ /app/test_*.py && \ - python3 manage.py collectstatic + python3 /app/manage.py collectstatic --noinput CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"] diff --git a/VorgabenUI/settings.py b/VorgabenUI/settings.py index b77e2cd..6fa33fa 100644 --- a/VorgabenUI/settings.py +++ b/VorgabenUI/settings.py @@ -127,7 +127,7 @@ USE_TZ = True STATIC_URL = '/static/' #STATIC_ROOT="/home/adebaumann/VorgabenUI/staticfiles/" -STATIC_ROOT="/app/staticfiles/" +STATIC_ROOT="staticfiles/" STATICFILES_DIRS= ( os.path.join(BASE_DIR,"static"), ) diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 3b22128..aeed948 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -25,7 +25,7 @@ spec: mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/vui:0.965 + image: git.baumann.gr/adebaumann/vui:0.966 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/dokumente/templates/standards/all_comments.html b/dokumente/templates/standards/all_comments.html new file mode 100644 index 0000000..561680a --- /dev/null +++ b/dokumente/templates/standards/all_comments.html @@ -0,0 +1,67 @@ +{% extends "base.html" %} + +{% block content %} +
Es gibt noch keine Kommentare zu Vorgaben.
+ +Insgesamt {{ total_comments }} Kommentar{{ total_comments|pluralize:"e" }}
+ + {% for dokument, comments in comments_by_document.items %} ++ {{ comments|length }} Kommentar{{ comments|length|pluralize:"e" }} +
+
+ Benutzer: {{ comment.user.first_name }} {{ comment.user.last_name }}
+ Erstellt: {{ comment.created_at|date:"d.m.Y H:i" }}
+ {% if comment.updated_at != comment.created_at %}
+
+ Bearbeitet: {{ comment.updated_at|date:"d.m.Y H:i" }}
+ {% endif %}
+
Version {{ version|default:"0.965" }}
-Version {{ version|default:"0.966" }}
+