{% load i18n %}

{% comment %}
<!--
  Copyright (C) 2011 University of Dundee & Open Microscopy Environment.
  All rights reserved.

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
{% endcomment %}

{% comment %}
<!--
  This page is designed as an AJAX response, to be used in a drop-down menu, currently used by 'annotations/metadata-general.html' 
-->
{% endcomment %}

{% for folder in scriptMenu %}
    <li>
        <a href="#" title="{{ folder.path }}">{{ folder.name }}</a>
        <ul>
            {% for script in folder.scripts %}
            <li><a href="{% url 'script_ui' script.0 %}">{{ script.1 }}...</a></li>
            {% endfor %}
        </ul>
    </li>
{% endfor %}
