From ad2d1e676c406c7480def121c96bbe5cca09a2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 20 Jan 2025 22:11:02 +0100 Subject: [PATCH] =?UTF-8?q?Zobrazen=C3=AD=20tla=C4=8D=C3=ADtek=20podle=20a?= =?UTF-8?q?tributu=20(ne=20v=20podle=20stavu=20v=20templatech)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- korektury/static/korektury/opraf.css | 12 ++++++++++++ .../korektury/korekturovatko/__oprava.html | 15 ++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/korektury/static/korektury/opraf.css b/korektury/static/korektury/opraf.css index 48d7e9a3..69b32636 100644 --- a/korektury/static/korektury/opraf.css +++ b/korektury/static/korektury/opraf.css @@ -22,15 +22,27 @@ img{background:white;} /* Barvy korektur */ [data-opravastatus="k_oprave"] { --rgb: 255, 0, 0; + + [value="k_oprave"] { display: none } + [value="notcomment"] { display: none } } [data-opravastatus="opraveno"] { --rgb: 0, 0, 255; + + [value="opraveno"] { display: none } + [value="comment"] { display: none } } [data-opravastatus="neni_chyba"] { --rgb: 128, 128, 128; + + [value="neni_chyba"] { display: none } + [value="comment"] { display: none } } [data-opravastatus="k_zaneseni"] { --rgb: 0, 255, 0; + + [value="k_zaneseni"] { display: none } + [value="notcomment"] { display: none } } [data-opravazobrazit="false"] { diff --git a/korektury/templates/korektury/korekturovatko/__oprava.html b/korektury/templates/korektury/korekturovatko/__oprava.html index 3ac76bd2..8f388183 100644 --- a/korektury/templates/korektury/korekturovatko/__oprava.html +++ b/korektury/templates/korektury/korekturovatko/__oprava.html @@ -32,37 +32,26 @@ - {% if o.status != o.STATUS.K_OPRAVE %} - {% endif %} - {% if o.status != o.STATUS.OPRAVENO %} - {% endif %} - {% if o.status != o.STATUS.NENI_CHYBA %} - {% endif %} - {% if o.status != o.STATUS.K_ZANESENI %} - {% endif %} - {% if o.status == 'opraveno' or o.status == 'neni_chyba' %} - - {% else %} - - {% endif %}