Browse Source

update debug section in templates

master
cinnaboot 7 years ago
parent
commit
071b87c906
  1. 24
      video_metadata/templates/base.html
  2. 5
      video_metadata/templates/file_listing/index.html
  3. 4
      video_metadata/templates/tmdb/create_mapping.html.jinja
  4. 4
      video_metadata/templates/tmdb/list_movie_test.html.jinja
  5. 5
      video_metadata/templates/tmdb/query.html
  6. 1
      video_metadata/views/tmdb.py

24
video_metadata/templates/base.html

@ -1,15 +1,19 @@
<!doctype html>
<title>{% block title %}{% endblock %} - video_metadata</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<nav>
<h1>video_metadata</h1>
<html>
<head>
<title>{% block title %}{% endblock %} - video_metadata</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<nav>
<h1>video_metadata</h1>
<ul>
<li><a href="{{ url_for('index') }}">Home</a>
<li><a href="{{ url_for('file_listing.index') }}">File Listing</a>
<li><a href="{{ url_for('tmdb.query_movie') }}">Query</a>
</ul>
</nav>
<section class="content">
</nav>
<section class="content">
<header>
{% block header %}{% endblock %}
</header>
@ -19,4 +23,10 @@
{% endfor %}
{% block content %}{% endblock %}
</section>
</section>
<section class="debug">
<h3>Debug Info</h3>
<pre>{{ debug_str }}</pre>
</section>
</body>
</html>

5
video_metadata/templates/file_listing/index.html

@ -20,9 +20,4 @@
</li>
{% endfor %}
</ul>
<div class="debug">
<h3>Debug Info</h3>
<pre>{{ debug_str }}</pre>
</div>
{% endblock %}

4
video_metadata/templates/tmdb/create_mapping.html.jinja

@ -8,8 +8,4 @@
{% if success %}
<p>Successfully added file mapping for {{ rel_path }}</p>
{% endif %}
<div class="debug">
<pre>movie_id: {{ movie_id }}, rel_path: {{ rel_path }}</pre>
</div>
{% endblock %}

4
video_metadata/templates/tmdb/list_movie_test.html.jinja

@ -19,8 +19,4 @@
</div>
{% endfor %}
</div>
<div class="debug">
<pre></pre>
</div>
{% endblock %}

5
video_metadata/templates/tmdb/query.html

@ -31,9 +31,4 @@
{% endfor %}
</div>
{% endif %}
<div class="debug">
<h3>Debug Info</h3>
<pre>{{ debug_str }}</pre>
</div>
{% endblock %}

1
video_metadata/views/tmdb.py

@ -186,6 +186,7 @@ def create_mapping():
return render_template('tmdb/create_mapping.html.jinja',
movie_id = movie_id,
rel_path = rel_path,
debug_str = util.dumpObject({'movie_id': movie_id, 'rel_path': rel_path}),
success = (len(errors) == 0)
)

Loading…
Cancel
Save