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.
32 lines
791 B
32 lines
791 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 %} |
|
<form action="{{ url_for('tmdb.query_movie') }}" method="post"> |
|
<span>{{ path.base_name }}</span> |
|
<input type="hidden" name="base_name" value="{{ path.base_name }}" /> |
|
<input type="hidden" name="full_path" value="{{ path.full_path }}" /> |
|
<input class="arrow_submit" type="submit" value="->" /> |
|
</form> |
|
{% 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 %}
|
|
|