From 17bd123d2c46aa3ce22d3785c90a19cc368735de Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 2 Feb 2024 22:52:41 +0200 Subject: [PATCH] sss --- osinaweb/db.sqlite3 | Bin 663552 -> 663552 bytes osinaweb/templates/index.html | 47 +++++++++--- osinaweb/templates/listing_pages/tasks.html | 79 ++++++++++++++------ 3 files changed, 93 insertions(+), 33 deletions(-) diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index f1e97913ca42481fb399e2b91963d67bec0a5eb5..29417acf0954f2c513c01e5ce15366cd59f9bad9 100644 GIT binary patch delta 819 zcmZuuO=uHA7~Q{YW+rAP)oN)HXt2!>Xf~ToHpwOd8{$EPLOm2K2yL}VDzr#z%|W!L zC|Es+9^wcdMDePrgt|A0gjC7;sEhe z>lO_3=|mxZvPkAgo=lK&a)z8HS(2{ytTymrSrmA#QrIi`y^=H2b-3Y>ZTGkVFi)+& zq1Oomwh@~HeL#=UIpl_Q_#EcIPw)!NS2Lbt;AW~|;W9!-Q?+PN)!6cAYBCy0s+tmw z8b;jUDxI^aqH2j)BA&{3GiyoRP&D007?EyfRWS@Ts)kcJW=?h-&D@$2j;p$^b-39q zuBdt}rt7J3+SrDN=+hmD-TQ8+u>gu1Nw9WmYFBo|ys-`Kf)^8RFe7mLpSp-G>A)FuldFf<&cHz>*r79 zW@j&tPF=l{oAw`ER_H25y=DcYFR|0?}8#M4t`I zPU>+Y3resMp3#wTd4@Kc&`XKyf74ekbW`Trl^V1A%DHysZZlk-?xwuhsXSV~Kqs7N K$o$lg{PI7||Ib+f delta 540 zcmZoTpwVzZV}dke=0q81#>|ZgJi3gJHs|VcFfpbym+7~c=`#W`6A&{4F$)m00x=s9 zvu`ic=jgk@a)X79Vfra!cAKp(oF&ZDt5`VwwzIKtZs%ltHGLm1=K&^;XVV+1IW)Gf z;Ny%r$SlKeGoAecr^a;s4QxWJ>ij^sS#ZM>J|R(tZ7B>4415gRl7SRE!?vXDHupJ? z3b66p*a`qe2EpJy7j-M6x2Znwc46(`}?@W@Kt&Xl$K0{ozkevF)`#IeD4b z6(d*~9GMuV>;L4GVX_VfNeOR1^qbS3MVY^YL4^0a8h-}=Oa4H9V}2?A^ZcxQ@A$6s z9pYQdzm0DOU&B@vt{6UP(MEk%26073kJOx;{P6su?99A$1^+yCp+>#w8~C_Hwy)>o j3T0$gh`j$4hakY`-bVrOpNb5FL(H diff --git a/osinaweb/templates/index.html b/osinaweb/templates/index.html index bf2e7d87..a2d98508 100644 --- a/osinaweb/templates/index.html +++ b/osinaweb/templates/index.html @@ -139,52 +139,75 @@
+ {% if task.status == 'Open' %} +
+

{{task.name}}

+
+ {% endif %} + + {% if task.status == 'Working On' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 bg-yellow-500 rounded-tl-md text-xl text-white font-semibold">

{{task.name}}

+ {% endif %}
{% if task.status == 'Open' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-blue-500">

{{task.status}}

{% endif %} {% if task.status == 'Working On' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-yellow-500">

{{task.status}}

{% endif %} {% if task.status == 'Open' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-blue-500">

{{task.formatted_start_date}}

{% endif %} {% if task.status == 'Working On' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-yellow-500">

{{task.formatted_start_date}}

{% endif %} {% if task.status == 'Open' %} + {% if task.end_date < current_date %}

{{task.formatted_end_date}}

+ {% else %} +
+

{{task.formatted_end_date}}

+
+ {% endif %} {% endif %} {% if task.status == 'Working On' %} -
+ {% if task.end_date < current_date %} +
+

{{task.formatted_end_date}}

+
+ {% else %} +

{{task.formatted_end_date}}

-
+
+ {% endif %} {% endif %}
@@ -292,7 +315,7 @@ {% if task.status == 'Working On' %}
+ class="w-full flex justify-center items-center text-white text-center bg-yellow-500 rounded-t-md py-5 px-3">

{{task.name}}

{% endif %} @@ -309,7 +332,7 @@ {% if task.status == 'Working On' %}
+ class="text-white bg-yellow-500 border-r border-gray-200 flex justify-center items-center text-center py-3 text-sm">

{{task.status}}

{% endif %} @@ -324,7 +347,7 @@ {% if task.status == 'Working On' %}
+ class="text-white bg-yellow-500 border-r border-gray-200 flex justify-center items-center text-center py-3 text-sm">

{{task.start_date}}

{% endif %} @@ -337,7 +360,7 @@ {% endif %} {% if task.status == 'Working On' %} -
+

{{task.end_date}}

{% endif %} diff --git a/osinaweb/templates/listing_pages/tasks.html b/osinaweb/templates/listing_pages/tasks.html index af08a0fb..25737f9a 100644 --- a/osinaweb/templates/listing_pages/tasks.html +++ b/osinaweb/templates/listing_pages/tasks.html @@ -159,22 +159,38 @@
+ {% if task.status == 'Open' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 bg-blue-500 rounded-tl-md text-xl text-white font-semibold">

{{task.name}}

+ {% endif %} + + {% if task.status == 'Working On' %} +
+

{{task.name}}

+
+ {% endif %} + + {% if task.status == 'Closed' %} +
+

{{task.name}}

+
+ {% endif %}
{% if task.status == 'Open' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-blue-500">

{{task.status}}

{% endif %} {% if task.status == 'Working On' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-yellow-500">

{{task.status}}

{% endif %} @@ -188,14 +204,14 @@ {% if task.status == 'Open' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-blue-500">

{{task.formatted_start_date}}

{% endif %} {% if task.status == 'Working On' %}
+ class="flex justify-center items-center border-r border-b border-gray-200 text-white bg-yellow-500">

{{task.formatted_start_date}}

{% endif %} @@ -208,24 +224,45 @@ {% endif %} {% if task.status == 'Open' %} -
-

{{task.formatted_end_date}}

-
+ {% if task.end_date < current_date %} +
+

{{task.formatted_end_date}}

+
+ {% else %} +
+

{{task.formatted_end_date}}

+
+ {% endif %} {% endif %} {% if task.status == 'Working On' %} -
-

{{task.formatted_end_date}}

-
+ {% if task.end_date < current_date %} +
+

{{task.formatted_end_date}}

+
+ {% else %} +
+

{{task.formatted_end_date}}

+
+ {% endif %} {% endif %} {% if task.status == 'Closed' %} -
-

{{task.formatted_end_date}}

-
+ {% if task.end_date < current_date %} +
+

{{task.formatted_end_date}}

+
+ {% else %} +
+

{{task.formatted_end_date}}

+
+ {% endif %} {% endif %}
@@ -333,7 +370,7 @@ {% if task.status == 'Working On' %}
+ class="w-full flex justify-center items-center text-white text-center bg-yellow-500 rounded-t-md py-5 px-3">

{{task.name}}

{% endif %} @@ -364,7 +401,7 @@ {% if task.status == 'Working On' %}
+ class="text-white bg-yellow-500 border-r border-gray-200 flex justify-center items-center text-center py-3 text-sm">

{{task.status}}

{% endif %} @@ -379,7 +416,7 @@ {% if task.status == 'Working On' %}
+ class="text-white bg-yellow-500 border-r border-gray-200 flex justify-center items-center text-center py-3 text-sm">

{{task.start_date}}

{% endif %} @@ -401,7 +438,7 @@ {% if task.status == 'Working On' %}
+ class="text-white bg-yellow-500 flex justify-center items-center text-center py-3 text-sm">

{{task.end_date}}

{% endif %}