Personal Video Database
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
625 B

{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}File Listing{% endblock %}</h1>
{% endblock %}
{% block content %}
<ul>
{% for path in paths recursive %}
<li>
{% if path.is_dir %}
<span>{{ path.base_name }}</span>
{% else %}
<a href="{{ url_for('tmdb.query_movie')
}}?query={{ path.base_name
}}&rel_path={{ path.rel_path }}">{{
path.base_name }}</a>
{% endif %}
{% if path.contents %}
<ul>{{ loop(path.contents) }}</ul>
{% endif %}
</li>
{% endfor %}
</ul>
<div class="debug">
<h3>Debug Info</h3>
<pre>{{ debug_str }}</pre>
</div>
{% endblock %}