diff --git a/.gitea/workflows/check_code_in_sonarqube.yaml b/.gitea/workflows/check_code_in_sonarqube.yaml index 65fde43..9a2c995 100644 --- a/.gitea/workflows/check_code_in_sonarqube.yaml +++ b/.gitea/workflows/check_code_in_sonarqube.yaml @@ -1,8 +1,8 @@ on: push: - branches: - - main - - development + # branches: + # - main + # - development pull_request: types: [opened, synchronize, reopened] @@ -64,4 +64,4 @@ jobs: -Dsonar.sources=. \ -Dsonar.host.url=${SONAR_HOST_URL} \ -Dsonar.token=${SONAR_TOKEN} \ - -Dsonar.python.coverage.reportPaths=coverage.xml \ No newline at end of file + -Dsonar.python.coverage.reportPaths=coverage.xml diff --git a/dokumente/templates/standards/user_comments.html b/dokumente/templates/standards/user_comments.html new file mode 100644 index 0000000..b0ca09f --- /dev/null +++ b/dokumente/templates/standards/user_comments.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} + +{% block content %} +
Sie haben noch keine Kommentare zu Vorgaben hinterlassen.
+ +Insgesamt {{ total_comments }} Kommentar{{ total_comments|pluralize:"e" }}
+ + {% for dokument, comments in comments_by_document.items %} ++ {{ comments|length }} Kommentar{{ comments|length|pluralize:"e" }} +
+
+ 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 %}
+