Evidence
% if evidence:Evidence that needs associating with a case
% for evi in evidence: % if evi.case_id is None:No case associated.
${evi.reference|h}
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
% 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:
${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.case.case_name|h}
${evi.reference|h}
No case associated.
${evi.reference|h}
No evidence has been added.
% endif