Using | pretty_date for task due dates, rather than MomentJS.
This commit is contained in:
@@ -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 %}
|
||||
|
@@ -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 %}
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user