Using | pretty_date for task due dates, rather than MomentJS.

This commit is contained in:
2016-11-08 13:34:44 +01:00
parent d4a31de842
commit 0fc61a9fe7
4 changed files with 3 additions and 19 deletions

View File

@@ -23,7 +23,7 @@
span.shotname(title="Shot {{ task._parent_info.name }}") {{ task._parent_info.name }}
| {% endif %}
span.name {{ task.name }}
span.due_date {{ task.properties.due_date | hide_none }}
span.due_date {{ task.properties.due_date | pretty_date | hide_none }}
| {% endfor %}
.col-splitter
@@ -58,12 +58,4 @@ script.
$('#task-list').css({'height': window_height});
$('#item-details').css({'height': window_height});
});
$('#task-list .task-list-item span.due_date').each(function(){
var current = $(this).text();
if (current){
$(this).html(moment().to(current));
}
});
| {% endblock %}

View File

@@ -30,12 +30,4 @@ script.
resizeHeight: false
});
$('#task-list .task-list-item span.due_date').each(function(){
var current = $(this).text();
if (current){
$(this).html(moment().to(current));
}
});
| {% endblock %}

View File

@@ -14,7 +14,7 @@
span.shotname {{ task._parent_info.name }}
| {% endif %}
span.name {{ task.name }}
span.due_date {{ task.properties.due_date }}
span.due_date {{ task.properties.due_date | pretty_date | hide_none }}
| {% else %}
.col-list-item.empty
span.no-tasks

View File

@@ -133,7 +133,7 @@
.table-cell Due Date
.table-cell
| {% if task.properties.due_date %}
span.due_date {{ task.properties.due_date }}
span.due_date {{ task.properties.due_date | pretty_date_time }}
| {% else %}
span.hint No date set
| {% endif %}