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 }}
|
span.shotname(title="Shot {{ task._parent_info.name }}") {{ task._parent_info.name }}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
span.name {{ task.name }}
|
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 %}
|
| {% endfor %}
|
||||||
|
|
||||||
.col-splitter
|
.col-splitter
|
||||||
@@ -58,12 +58,4 @@ script.
|
|||||||
$('#task-list').css({'height': window_height});
|
$('#task-list').css({'height': window_height});
|
||||||
$('#item-details').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 %}
|
| {% endblock %}
|
||||||
|
@@ -30,12 +30,4 @@ script.
|
|||||||
resizeHeight: false
|
resizeHeight: false
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#task-list .task-list-item span.due_date').each(function(){
|
|
||||||
var current = $(this).text();
|
|
||||||
if (current){
|
|
||||||
$(this).html(moment().to(current));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
| {% endblock %}
|
| {% endblock %}
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
span.shotname {{ task._parent_info.name }}
|
span.shotname {{ task._parent_info.name }}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
span.name {{ task.name }}
|
span.name {{ task.name }}
|
||||||
span.due_date {{ task.properties.due_date }}
|
span.due_date {{ task.properties.due_date | pretty_date | hide_none }}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
.col-list-item.empty
|
.col-list-item.empty
|
||||||
span.no-tasks
|
span.no-tasks
|
||||||
|
@@ -133,7 +133,7 @@
|
|||||||
.table-cell Due Date
|
.table-cell Due Date
|
||||||
.table-cell
|
.table-cell
|
||||||
| {% if task.properties.due_date %}
|
| {% if task.properties.due_date %}
|
||||||
span.due_date {{ task.properties.due_date }}
|
span.due_date {{ task.properties.due_date | pretty_date_time }}
|
||||||
| {% else %}
|
| {% else %}
|
||||||
span.hint No date set
|
span.hint No date set
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
Reference in New Issue
Block a user