{% extends "layout.html" %}
{% block title %}Webrunner software content{% endblock %}
{% block head %}
  {{ super() }}
  <link href="{{ url_for('static', filename='css/jqueryFileTree.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
  <script src="{{ url_for('static', filename='jquery/jqueryFileTree.js') }}" type="text/javascript" charset="utf-8"></script>
  {%if result != "" %}
  <script type="text/javascript" charset="utf-8">
    $(document).ready( function() {
      $('#fileTree').fileTree({ root: "{{result}}", script: $SCRIPT_ROOT + "/readFolder", folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false, selectFolder: false }, function(file) { 
			alert(file);
		});
    });
  </script>
  {%endif%}
{% endblock %}
{% block body %}
<h2>Result for {{ type }}</h2>
<div id="fileTree" class="file_tree"></div>
{% endblock %}
