<%inherit file="/base/base.html"/> <%namespace file="/utils/sidebars.html" name="sidebars" /> <%def name="javascripts()" filter="trim">

Evidence

% if evidence:

Evidence that needs associating with a case

% for evi in evidence: % if evi.case_id is None:
${evi.type|h} icon

No case associated.
${evi.reference|h}

% endif % endfor

Timeline of added evidence

<% current_year = None %> <% current_month = None %> <% current_day = None %> % for evi in evidence: % if current_year != evi.current_status.date_of_custody.year:

${evi.current_status.date_of_custody.year|h}

<% current_year = evi.current_status.date_of_custody.year %> % endif % if current_month != evi.current_status.date_of_custody.month:

${evi.current_status.date_of_custody.strftime('%B')|h}

<% current_month = evi.current_status.date_of_custody.month %> % endif % if current_day != evi.current_status.date_of_custody.date():

${evi.current_status.date_of_custody.day|h}

<% current_day = evi.current_status.date_of_custody.date() %>
% endif
${evi.type|h} icon % if evi.case_id is not None:

${evi.case.case_name|h}
${evi.reference|h}

% else:

No case associated.
${evi.reference|h}

% endif
% endfor % else:

No evidence has been added.

% endif