{% if meta.can_edit %}
  <li>
    <a
      role="button"
      onclick="document.getElementById('edit_model_modal').showModal(); return false;"
    >
      <i class="glyphicon glyphicon-edit"></i> Edit Model</a
    >
  </li>
  {% if model.model_status == 'BUILT_NOT_EVALUATED' or model.model_status == 'FINISHED' %}
    <li>
      <a
        role="button"
        onclick="document.getElementById('evaluate_model_modal').showModal(); return false;"
      >
        <i class="glyphicon glyphicon-ok"></i> Evaluate Model</a
      >
    </li>
  {% endif %}
  {% if model.model_status == 'BUILT_NOT_EVALUATED' or model.model_status == 'FINISHED' %}
    <li>
      <a
        role="button"
        onclick="document.getElementById('retrain_model_modal').showModal(); return false;"
      >
        <i class="glyphicon glyphicon-repeat"></i> Retrain Model</a
      >
    </li>
  {% endif %}
  <li>
    <a
      class="button"
      onclick="document.getElementById('generic_delete_modal').showModal(); return false;"
    >
      <i class="glyphicon glyphicon-trash"></i> Delete Model</a
    >
  </li>
{% endif %}
