{% load i18n %}
{% load common_filters %}
{% load common_tags %}
{% comment %}
{% endcomment %}
{% if manager.image %}
{% with image=manager.image %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}
{% with obj=manager.image nameText=manager.image.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{{ manager.obj_type }} ID: {{ manager.obj_id }}
{% trans "Full viewer" %}
{% if manager.image.showOriginalFilePaths %}
{% endif %}
{% if manager.openAstexViewerCompatible %}
{% trans "Volume viewer" %}
{% endif %}
{% with obj=manager.image %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
{% with image=manager.image parent=manager.image.getParent %}
{% include "webclient/annotations/includes/core_metadata.html" %}
{% endwith %}
{% else %}
{% if manager.dataset %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.dataset nameText=manager.dataset.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{{ manager.obj_type }} ID: {{ manager.obj_id }}
{% with obj=manager.dataset %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
Owner:
{{ manager.dataset.getOwner.getFullName }}
Creation Date:
{{ manager.dataset.getDate|date:"Y-m-d H:i:s" }}
{% else %}
{% if manager.project %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.project nameText=manager.project.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{{ manager.obj_type }} ID: {{ manager.obj_id }}
{% with obj=manager.project %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
Owner:
{{ manager.project.getOwner.getFullName }}
Creation Date:
{{ manager.project.getDate|date:"Y-m-d H:i:s" }}
{% endif %}
{% endif %}
{% endif %}
{% if manager.well %}
{% with image=manager.well.getWellSample.image disableDownload=manager.isDownloadDisabled omeTiffDisabled=True %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% endwith %}
{% with obj=manager.well.getWellSample.image nameText=manager.well.getWellSample.image.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
Image ID: {{ manager.well.getWellSample.image.id }}
Well ID: {{ manager.well.id }}
{% trans "Launch full viewer" %}
{% if manager.well.getWellSample.image.showOriginalFilePaths %}
{% endif %}
{% with obj=manager.well.getWellSample.image %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
{% with image=manager.well.getWellSample.image %}
{% include "webclient/annotations/includes/core_metadata.html" %}
{% endwith %}
{% else %}
{% if manager.acquisition %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.acquisition nameText=manager.acquisition.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
Plate Run ID: {{ manager.acquisition.id }}
{% with obj=manager.acquisition %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
Owner:
{{ manager.acquisition.getOwner.getFullName }}
Creation Date:
{{ manager.acquisition.getDate|date:"Y-m-d H:i:s" }}
{% else %}
{% if manager.plate %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.plate nameText=manager.plate.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{{ manager.obj_type }} ID: {{ manager.obj_id }}
{% with obj=manager.plate %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
Owner:
{{ manager.plate.getOwner.getFullName }}
Creation Date:
{{ manager.plate.getDate|date:"Y-m-d H:i:s" }}
{% else %}
{% if manager.screen %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.screen nameText=manager.screen.name %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{{ manager.obj_type }} ID: {{ manager.obj_id }}
{% with obj=manager.screen %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
Owner:
{{ manager.screen.getOwner.getFullName }}
Creation Date:
{{ manager.screen.getDate|date:"Y-m-d H:i:s" }}
Screen Count:
{{ manager.screen.countChildren }} {% plural manager.screen.countChildren 'screen' 'screens' %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% trans "Rating" %}
{% if manager.rating_annotations %}
{% else %}
{% trans "No ratings" %}
{% endif %}
{% trans "Tags" %}
{% if manager.canAnnotate %}
{% endif %}
{% for tag in manager.tag_annotations %}
{% with can_remove=tag.link.canDelete %}
{% include "webclient/annotations/tag.html" %}
{% endwith %}
{% endfor %}
{% trans "Attachments" %}
{% if manager.canAnnotate %}
{% endif %}
{% for fileann in manager.file_annotations %}
{% with can_remove=fileann.link.canDelete %}
{% include "webclient/annotations/fileann.html" %}
{% endwith %}
{% endfor %}
{% trans "Others" %}:
{% for ann in manager.xml_annotations %}
XML:
{{ ann.getValue|escape|slice:"0:30" }}...
Open in window
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% for ann in manager.boolean_annotations %}
Boolean:
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% for ann in manager.double_annotations %}
Double:
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% for ann in manager.long_annotations %}
Long:
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% for ann in manager.term_annotations %}
Term:
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% for ann in manager.time_annotations %}
Time:
{{ ann.getValue }}
{% if ann.ns %}Namespace: {{ ann.ns }} {% endif %}
{% if ann.description %}Description: {{ ann.description }} {% endif %}
Owner: {{ ann.getOwner.getFullName }}
Date: {{ ann.creationEventDate|date:"Y-m-d H:i:s" }}
{% endfor %}
{% trans "Comment:" %}
{% if manager.canAnnotate %}
{% endif %}
{% if manager.image %}
Image Contained in:
{% endif %}
{% endif %}
{% if manager.tag %}
{% include "webclient/annotations/includes/toolbar.html" %}
{% with obj=manager.tag nameText=manager.tag.getValue %}
{% include "webclient/annotations/includes/name.html" %}
{% endwith %}
{% with obj=manager.tag %}
{% include "webclient/annotations/includes/description.html" %}
{% endwith %}
{% if manager.tag.getNs %}
{% ifnotequal manager.tag.getNs insight_ns %}
Name space:
{{ manager.tag.getNs }}
{% endifnotequal %}
{% endif %}
Owner:
{{ manager.tag.getOwner.getFullName }}
Creation Date:
{{ manager.tag.getDate|date:"Y-m-d H:i:s" }}
Image Count:
{% if False %}
{{ manager.tag.countChildren }} {% plural manager.tag.countChildren 'tag' 'tags' %}
{% endif %}
{% endif %}