{% extends "collections/paginated_base.html" %}

{% block page_title %}{{ page_title|default:"Structures" }}{% endblock %}

{% block action_button %}
  {% if meta.can_edit or not meta.url_contains_package %}
    <button
      type="button"
      class="btn btn-primary btn-sm"
      onclick="document.getElementById('new_compound_structure_modal').showModal(); return false;"
    >
      New Structure
    </button>
  {% endif %}
{% endblock action_button %}

{% block action_modals %}
  {# FIXME: New Compound Structure Modal #}
{% endblock action_modals %}

{% block description %}
  <p>The structures stored in this compound.</p>
  <a
    target="_blank"
    href="https://wiki.envipath.org/index.php/compounds"
    class="link link-primary"
  >
    Learn more &gt;&gt;
  </a>
{% endblock description %}
