%for data in timeline_data['jobs_data'] :
<%
format = lambda s: 'N/A' if s is None or s == 'null' else str(s)
job_detail = _("Job Id") + " : " + format(data['divid_job_name']) + "\n"
job_detail += _("Start Time") +" : " + format(data['start_datetime']) + "\n" + _("End Time") + " : " + format(data['end_datetime']) + "\n"
job_detail += _("Cores On Node") + " : " + format(data['processors_on_node']) + "\n" + _("Wallclock Limit Seconds") + " : " + format(data['wallclock_limit_seconds']) + "\n"
%>
%endfor
%for data in timeline_data['historical_node_data'] :
<%
historical_node_detail = "State : " + data['div_state_name'] + "\n"
historical_node_detail += "Start Time : " + str(data['state_start_time']) + "\n" + "End Time : " + str(data['state_end_time']) + "\n"
%>
## I did not clickable a block only when "DOWN" state because I'm afraid to break the logic of Cybage command
%if data['state_name'] != 'DOWN':
%else:
%endif
%endfor
%for data in timeline_data['inactive_node_data'] :
<%
inactive_node_detail = "State : " + data["div_inactive_state_name"] + "\n"
inactive_node_detail += "Start Time : " + str(data['inactive_state_start_time']) + "\n" + "End Time : " + str(data['inactive_state_end_time']) + "\n"
%>
%endfor
%for data in timeline_data['reservation_data'] :
%if 'description' in data:
%endfor
%endif
% else: