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

{% block page_title %}Models{% endblock %}

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

{% block action_modals %}
  {% if meta.enabled_features.MODEL_BUILDING %}
    {% include "modals/collections/new_model_modal.html" %}
  {% endif %}
{% endblock action_modals %}

{% block description %}
  <p>A model applies machine learning to limit the combinatorial explosion.</p>
  <a
    target="_blank"
    href="https://wiki.envipath.org/index.php/relative_reasoning"
    class="link link-primary"
  >
    Learn more &gt;&gt;
  </a>
{% endblock description %}
