diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index f1e97913..29417acf 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ 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 %}