diff --git a/device/templates/details.html b/device/templates/details.html index c5fa7a4..47a65e0 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -4,7 +4,7 @@ {% block content %}
- -
+
{% for note in device_notes|slice:":4" %}
-
+
{{ note.date|timesince }} {% trans "ago" %} {% if user == note.user or user.is_admin %} - {% trans "Editable" %} + {% trans "Editable" %}
{{ note.user.get_full_name|default:note.user.username }}
- + {% if user == note.user or user.is_admin %}
@@ -73,7 +73,7 @@ - +
{% endif %} - +
{% empty %} @@ -150,7 +150,7 @@ {% endif %} - @@ -263,8 +263,8 @@ saveLink.classList.remove("disabled", "text-muted", "border-light"); saveLink.classList.add("text-success", "border-success"); - saveLink.style.pointerEvents = "auto"; - + saveLink.style.pointerEvents = "auto"; + } //updates note-update-form with new value from blockquote function submitUpdatedNote(noteId) {