From 3528a44d3c4c9b6f310ee617ce19998ac1ccfe2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 12 Dec 2024 11:24:17 +0100 Subject: [PATCH] =?UTF-8?q?=C3=9Aprava=20chov=C3=A1n=C3=AD=20korektury=20(?= =?UTF-8?q?schov=C3=A1v=C3=A1=20text=20korektury!!!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- korektury/static/korektury/imgs/hide.png | Bin 270 -> 307 bytes korektury/static/korektury/opraf.js | 3 + korektury/templates/korektury/opraf.html | 95 ++++++++--------------- 3 files changed, 35 insertions(+), 63 deletions(-) diff --git a/korektury/static/korektury/imgs/hide.png b/korektury/static/korektury/imgs/hide.png index bcaeec04c6440a7a42febd3825cfce7ae4e79ed8..e58ddb03f8d82e22230987b3623f63ebe18d41e0 100644 GIT binary patch delta 206 zcmV;<05SiL0gdWk&!CeR;0ink|?*+ff4gdfE07*qo IM6N<$g3-!XNdN!< delta 171 zcmV;c096080*(TZG?7s{e~U>(K~y-6<5`tjM`*O{*<{e$Q_+)6JI##JMYKg@bfgV#2C#;-ogX7NOs2xI@lD8DYHg9wDqt{ zkhkc*p46{dvd5t6CnFr+$OjCo+YUA=jcPOO?x)%)gcY Zg(oeeKJ4WPBPaj>002ovPDHLkV1nN?Pb2^U diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 61eb5ce9..08b6149e 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -132,12 +132,15 @@ function img_click(element, ev) { function toggle_visibility(oid){ var buttondiv = document.getElementById(oid+'-buttons') var text = document.getElementById(oid+'-body'); + var toggleimg = document.getElementById(oid+'-toggleimg'); if (text.style.display == 'none'){ text.style.display = 'block'; buttondiv.style.display = 'inline-block'; + toggleimg.style.transform = ""; }else { text.style.display = 'none'; buttondiv.style.display = 'none'; + toggleimg.style.transform = "rotate(180deg)"; } for (var i=0;i -
- {{o.autor}} +
+ + {% for k in o.komentare %} +
+
+
{{k.autor}}
+
+ +
+ {% csrf_token %} + + + +
+ + +
+
+
{{k.text|linebreaks}}
+
+
+ {% endfor %} +
+
@@ -122,16 +149,9 @@ - {% if o.komentare %} - - {% else %} - - {% endif %} + {% if o.status != o.STATUS.K_OPRAVE %} - {% else %} - - {% endif %} {% if o.status == 'opraveno' or o.status == 'neni_chyba' %}
-
-
{{o.text|linebreaks}}
- - {% for k in o.komentare %} -
-
-
-
{{k.autor}}
-
- -
- {% csrf_token %} - - - {% if forloop.last %} - - {% else %} - - {% endif %} -
- - {% if forloop.last %} - - {% else %} - - {% endif %} -
-
-
{{k.text|linebreaks}}
-
- {% endfor %} -
{% endfor %}