## Copyright (c) 2016 by Adaptive Computing Enterprises, Inc. All Rights Reserved. <%! from django.utils.translation import ugettext as _ %>

${ startDate } ${_("to")} ${ endDate }

% for data in timescale_data: % endfor %for data in timescale_data: %endfor
${ data[0] }
%if marginLeftNowLine != "0px":
${_("Now")}
%endif
% if status_code == 2000 : %if resourcejobtimeline_data: %for timeline_data in resourcejobtimeline_data :
%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:
${ data['state_name']}
%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
%endfor %else:
${_("No data available in table")}
%endif % else:
${ resourcejobtimeline_data }
%endif
${_("Show") } ${_("Items")}