From d8d00279edb3a8fbdf4931c30db48f08ea556ce8 Mon Sep 17 00:00:00 2001
From: "holger.trampe"
Date: Mon, 13 Apr 2020 00:02:54 +0200
Subject: [PATCH] Zwischencommit 6 Agenturverbund
---
.../standards/standards_single_agn.html | 32 ++++++++++++-------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/standards/templates/standards/standards_single_agn.html b/standards/templates/standards/standards_single_agn.html
index 8f27ee6..56ce8d4 100644
--- a/standards/templates/standards/standards_single_agn.html
+++ b/standards/templates/standards/standards_single_agn.html
@@ -6,7 +6,7 @@
{% checkifsharedstandardinagency request.user.profile.agency standard as isshared %}
{% if isshared == False %}
-
+
{% else %}
@@ -29,7 +29,10 @@
+
+
+
{% if standard.freefield_title|length > 0 %}
{% endif %}
+
+
+
+
+
{% if standard.addedfiles.all|length > 0 %}
@@ -81,8 +89,8 @@
Von {{comment.comment_by.first_name}} {{comment.comment_by.last_name}} am {{comment.last_modified_on|date:"d.m.Y H:i"}}
{{comment.content}}
-
+
+
{% if comment.comment_by == request.user or standard.created_standard_by == request.user or standard.last_modified_by == request.user %}
@@ -145,14 +153,14 @@
$("#comments_counter").html(comments_counter);
if(comments_counter < 2){
- $("#comments_word").html("Kommentar");
+ $("#comments_word").html("Kommentr")
}
- else {
- $("#comments_word").html("Kommentare");
+ else{
+ $("#comments_word").html("Kommentr")
}
- $("#commentsection").prepend('
');
- //$("#commentsection").prepend('');
+ $("#commentsection").prepend('');
+
$("#newcomment").val("");
}
});
@@ -170,11 +178,11 @@
comments_counter = comments_counter - 1;
$("#comments_counter").html(comments_counter);
if(comments_counter < 2){
- $("#comments_word").html("Kommentar");
- }
- else {
- $("#comments_word").html("Kommentare");
+ $("#comments_word").html("Kommentr")
}
+ else{
+ $("#comments_word").html("Kommentr")
+ }s
$("#comment_" + workingid).remove();
}
});