{% load url %} {% load profiles %} {% load workstations %} {% load guardian_tags %} {% load pathlib %} {% load humanize %} {% load remove_whitespace %} {% load dict_lookup %} {% load meta_attr %} {{ object.created|naturaltime }} {{ object.creator|user_profile_link }} {% if object.animate %} {% endif %} {% for input in object.inputs.all %} {{ input.image.name|truncatechars:15 }} {% endfor %} ({{ object.get_status_display }}{% if object.status == object.SUCCESS and object.stderr %}, with warnings{% endif %}) {% if object.rendered_result_text %} {{ object.rendered_result_text|json_script:object.pk }} {% endif %} {{ object.comment }} {% if object.public %} {% else %} {% if object.viewers.user_set.all|length > 1 %} {# TODO: Hack, we need to exclude the creator rather than checking the length is > 1 #} {% else %} {% endif %} {% endif %} {% if object.status == object.SUCCESS %} {% endif %} {% for interface in outputs_list_display.JSON %} {% get_dict_values object.slug_to_output interface.slug as json %} {% if json %} {% if json.interface.kind == 'STR' %} {{ json.value|slice:"1:-1" }} {% else %} {{ json.value }} {% endif %} {% else %} {% endif %} {% endfor %} {% for interface in outputs_list_display.TIMG %} {% get_dict_values object.slug_to_output interface.slug as image %} {% if image %} {{ image.file.name }} {% else %} {% endif %} {% endfor %} {% for interface in outputs_list_display.CHART %} {% get_dict_values object.slug_to_output interface.slug as chart %} {% if chart %} {% else %} {% endif %} {% endfor %} {% for interface in outputs_list_display.FILE %} {% get_dict_values object.slug_to_output interface.slug as file %} {% if file %} {% else %} {% endif %} {% endfor %}