Browse Source

Подправил подсветку задач, теперь бледные и выполненные задачи

devel
bashmak 9 years ago
parent
commit
47b913ba44
  1. 4
      taskapp/models.py
  2. 2
      taskapp/templates/taskapp/tasklist.html
  3. 2
      taskapp/templates/taskapp/tasklist_active.html
  4. 2
      taskapp/templates/taskapp/tasklist_all.html
  5. 2
      taskapp/templates/taskapp/tasklist_finish.html
  6. 2
      taskapp/templates/taskapp/tasklist_own.html

4
taskapp/models.py

@ -101,8 +101,8 @@ class Task(models.Model):
def get_attachment_fname(self):
return os.path.basename(self.attachment.name)
def is_outdated(self):
return self.out_date < timezone.now().date()
def is_relevant(self):
return self.out_date < timezone.now().date() or self.state == 'F'
def task_handler(sender, instance, **kwargs):

2
taskapp/templates/taskapp/tasklist.html

@ -20,7 +20,7 @@
<tbody>
{% for task in tasks %}
{% if task.is_outdated %}
{% if task.is_relevant %}
<tr class="text-muted">
{% else %}
{% if task.priority == 'E' %}

2
taskapp/templates/taskapp/tasklist_active.html

@ -20,7 +20,7 @@
<tbody>
{% for task in tasks %}
{% if task.is_outdated %}
{% if task.is_relevant %}
<tr class="text-muted">
{% else %}
{% if task.priority == 'E' %}

2
taskapp/templates/taskapp/tasklist_all.html

@ -32,7 +32,7 @@
<tbody>
{% for task in tasks %}
{% if task.is_outdated %}
{% if task.is_relevant %}
<tr class="text-muted">
{% else %}
{% if task.priority == 'E' %}

2
taskapp/templates/taskapp/tasklist_finish.html

@ -20,7 +20,7 @@
<tbody>
{% for task in tasks %}
{% if task.is_outdated %}
{% if task.is_relevant %}
<tr class="text-muted">
{% else %}
{% if task.priority == 'E' %}

2
taskapp/templates/taskapp/tasklist_own.html

@ -19,7 +19,7 @@
<tbody>
{% for task in tasks %}
{% if task.is_outdated %}
{% if task.is_relevant %}
<tr class="text-muted">
{% else %}
{% if task.priority == 'E' %}

Loading…
Cancel
Save