{% load i18n %} {% load common_filters %} {% load common_tags %} {% comment %} {% endcomment %} {% if not manager.tag %}
{% 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 }}

{% if manager.image.showOriginalFilePaths %}
{% endif %}
{% if manager.openAstexViewerCompatible %} {% 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 }}

{% 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 %}
{% for rating in manager.rating_annotations %} {% ifequal rating.getValue 0 %}{% endifequal %} {% ifequal rating.getValue 1 %}{% endifequal %} {% ifequal rating.getValue 2 %}{% endifequal %} {% ifequal rating.getValue 3 %}{% endifequal %} {% ifequal rating.getValue 4 %}{% endifequal %} {% ifequal rating.getValue 5 %}{% endifequal %} {{ rating.getDetails.getOwner.getNameWithInitial }} {% endfor %}
{% 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 %}

{% trans "Others" %}:

{% for ann in manager.xml_annotations %} {% endfor %} {% for ann in manager.boolean_annotations %} {% endfor %} {% for ann in manager.double_annotations %} {% endfor %} {% for ann in manager.long_annotations %} {% endfor %} {% for ann in manager.term_annotations %} {% endfor %} {% for ann in manager.time_annotations %} {% endfor %}
XML:
{{ ann.getValue|escape|slice:"0:30" }}...
Open in window
{{ ann.getValue }}
Boolean: {{ ann.getValue }}
Double: {{ ann.getValue }}
Long: {{ ann.getValue }}
Term: {{ ann.getValue }}
Time: {{ ann.getValue }}

{% trans "Comment:" %}

{% if manager.canAnnotate %}
{% csrf_token %}
{{ form_comment.image }}
{{ form_comment.dataset }}
{{ form_comment.project }}
{{ form_comment.screen }}
{{ form_comment.plate }}
{{ form_comment.acquisition }}
{{ form_comment.well }}
{{ form_comment.comment }}
{% endif %}
{% for tann in manager.text_annotations %} {% include "webclient/annotations/comment.html" %} {% endfor %}
{% 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 %} {% endifnotequal %} {% endif %} {% if False %} {% endif %}
Name space: {{ manager.tag.getNs }}
Owner: {{ manager.tag.getOwner.getFullName }}
Creation Date: {{ manager.tag.getDate|date:"Y-m-d H:i:s" }}
Image Count:{{ manager.tag.countChildren }} {% plural manager.tag.countChildren 'tag' 'tags' %}
{% endif %}