{% extends "base.html" %} {% block title %}Objects — {{ service_name }}{% endblock %} {% block content %} {% if search_notes is defined %} {% for category, note, start, end in search_notes %} {% if category == "error" %} {% set alert_class="alert-danger" %} {% elif category == "warning" %} {% set alert_class="alert-warning" %} {% else %} {% set alert_class="alert-info" %} {% endif %} {% endfor %} {% endif %} {% if not advanced_search_had_error %} {% if search_tree %} {% macro render_search_tree(search_tree, depth=0) -%} {% if depth > 100 %} ... {% else %} {% if search_tree.input_text %} {{ search_tree.input_text }} {% elif search_tree | length == 2 %} {{ search_tree[0].operator }} {% if search_tree[1].input_text %} {{ search_tree[1].input_text }} {% else %} {{ render_search_tree(search_tree[1], depth=depth+1) }} {% endif %} {% elif search_tree | length == 3 %} {% if search_tree[0].input_text %} {{ search_tree[0].input_text }} {% else %}
{{ render_search_tree(search_tree[0], depth=depth+1) }}
{% endif %} {{ search_tree[1].operator }} {% if search_tree[2].input_text %} {{ search_tree[2].input_text }} {% else %} {{ render_search_tree(search_tree[2], depth=depth+1) }} {% endif %}
{% endif %} {% endif %} {%- endmacro %} {% if search_tree.input_text %} {{ search_tree.input_text }} {% else %} {{ render_search_tree(search_tree) }} {% endif %} {% endif %} {% endif %} {% if objects or not search_notes %} {% if project_id %} {% set object_suffix = " for Project #{}: {}".format(url_for('.project', project_id=project_id), project_id, project.name | e) | safe %} {% elif action_id %} {% set object_suffix = " for Action #{}: {}".format(url_for('.action', action_id=action_id), action_id, action.name | e) | safe %} {% elif location_id %} {% set object_suffix = " for Location #{}: {}".format(url_for('.location', location_id=location_id), location_id, location.name | e) | safe %} {% elif user_id %} {% set object_suffix = " for User #{}: {}".format(url_for('.user_profile', user_id=user_id), user_id, user.name | e) | safe %} {% elif doi %} {% set object_suffix = " for Publication doi:{}".format(doi, doi) | safe %} {% else %} {% set object_suffix = "" %} {% endif %} {% if action_type %}

{{ action_type.object_name_plural }}{{ object_suffix }}

{% else %}

Objects{{ object_suffix }}

{% endif %} {% endif %} {% if objects %} {% if show_action %}{% endif %} {% for property_name in display_properties %} {% endfor %} {% for object in objects %} {% if show_action %} {% if object.action is not none %} {% if object.action.instrument is not none %} {% else %} {% endif %} {% else %} {% endif %} {% endif %} {% for property_name in display_properties %} {% if object.display_properties[property_name] is not none %} {% set data = object.display_properties[property_name][0] %} {% set schema = object.display_properties[property_name][1] %} {% else %} {% endif %} {% endfor %} {% endfor %}
ID Name Created Last modifiedInstrumentAction{{ display_property_titles[property_name] }}{% if property_name not in ('hazards', 'tags') %} {% endif %}
Date User Date User
{{ object.object_id }} {{ object.data['name']['text'] }} {{ object.created_at }} {{ object.created_by.name }} {{ object.last_modified_at }} {{ object.modified_by.name }}{{ object.action.instrument.name }}{{ object.action.name }} {% include "objects/view/table_any.html" %}
{% if pagination_enabled %}
Pages:
    {% if limit and num_objects_found %} {% for i in range((num_objects_found+limit-1)//limit) %} {% if i * limit == offset %}
  1. {{ i + 1 }}
  2. {% else %}
  3. {{ i + 1 }}
  4. {% endif %} {% endfor %} {% else %}
  5. 1
  6. {% endif %}
Objects per page:
    {% for i in (10, 25, 50, 100, 'all') %} {% if i == limit or (limit is none and i == 'all') %}
  1. {{ i }}
  2. {% else %}
  3. {{ i }}
  4. {% endif %} {% endfor %}
{% endif %} {% elif not search_notes %} {% endif %} {% endblock %}