{% extends "panel/base.html" %}
{% load static %}
{% block title %}{{ project }}{% endblock %}
{% block navlist%}
    <li><a href="{% url 'panel:index' %}">Panel</a></li>
    <li><a href="{% url 'panel:release-view' release %}">{{ release }}</a></li>
    <li class="active"><a href="#">{{ project }}</a></li>
{% endblock %}
{% block content %}
<div class="container">
    <div class="panel panel-default project-clone hidden">
        {% include "panel/base_project.html" %}
    </div>
    <div id="project-list"></div>
</div>
{% endblock %}

{% block extrajs %}
<script src="{% static "panel/js/panel.js" %}"></script>
<script type="text/javascript">
$( document ).ready(function() {
  var values;
  $.panel = 'project';
  $.release.max_uuids = 15;
  $.release.interval = 30000;
  $.release.timer = setInterval(function(){
    get_uuids_for_project('{{ release }}', '{{ project }}');
  }, $.release.interval);
  create_new_project('{{ release }}', '{{ project }}', false);
{% for uuid in uuids %}
  values = {tag: '{{ uuid.tag }}', latest: false };
  create_new_uuid('{{ release }}', '{{ project }}', values);{% endfor %}
});
</script>
{% endblock %}
