| {% extends 'layout.html' %} | {% block header_items %} link(href='//cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTables.bootstrap.css', rel='stylesheet') | {% endblock %} | {% block body %} #shots-main.col-md-8 table#user_tasks.table.table-striped.table-hover( cellpadding='0', cellspacing='0', border='0') thead tr th {# 0 #} th {# 1 #} th {# 2 #} th {# 3 #} th {# 4 #} Shot th {# 5 #} Name th {# 6 #} Description th {# 7 #} Duration th {# 8 #} Status | {% endblock %} | {% block sidebar %} #shots-sidebar.col-md-4 #shot_details_container #task_details_container | {% endblock %} | {% block footer_scripts %} script(type='text/javascript', src='//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js') script(). $(document).ready(function(){ function render_timing(timing) { var timing_text = ''; if (timing['cut_in'] && timing['cut_out']) { timing_frames = timing['cut_out'] - timing['cut_in']; timing_text += ''; timing_text += Math.round(timing_frames / 24); timing_text += 's'; } return timing_text; } function render_status_options(status) { var selected = false; var options = [] statuses = ['todo', 'in_progress', 'on_hold', 'review', 'approved', 'final'] $.each(statuses, function(key, value) { selected = false; if (status === value) { selected = true; }; option = $("