You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
XPPL/app/templates/list.html

38 lines
976 B
HTML

2 years ago
{% extends "base.html" %}
{% block main %}
<div id="home_content">
<h2 class="header">Index</h2>
<div class="locations_list">
{% for location in locations %}
<div class="row">
<div>{{location.id}}</div>
<div>{{location.longitude}}, {{location.latitude}}</div>
<div>{{location.message if location.loc_type == "message"}}</div>
<div>
{% if location.loc_type == "audio" %}
2 years ago
<audio id="audio-player" controls="" src="uploads/{{location.audio}}" type="audio/ogg"></audio>
2 years ago
{% endif %}
</div>
<div>
<a class="delete_btn" href="location/{{location.id}}/delete">delete</a>
</div>
</div>
2 years ago
<audio controls>
<source src="uploads/{{location.audio}}" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
2 years ago
{% endfor %}
</div>
</div>
{% endblock main %}
{% block js %}
<script>
</script>
{% endblock js %}