Browse Source

update debug section in templates

master
cinnaboot 7 years ago
parent
commit
071b87c906
  1. 10
      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

10
video_metadata/templates/base.html

@ -1,6 +1,10 @@
<!doctype html> <!doctype html>
<html>
<head>
<title>{% block title %}{% endblock %} - video_metadata</title> <title>{% block title %}{% endblock %} - video_metadata</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<nav> <nav>
<h1>video_metadata</h1> <h1>video_metadata</h1>
<ul> <ul>
@ -20,3 +24,9 @@
{% block content %}{% endblock %} {% 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> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<div class="debug">
<h3>Debug Info</h3>
<pre>{{ debug_str }}</pre>
</div>
{% endblock %} {% endblock %}

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

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

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

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

5
video_metadata/templates/tmdb/query.html

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

1
video_metadata/views/tmdb.py

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

Loading…
Cancel
Save