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

34 lines
1.1 KiB
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">
2 years ago
<div>{{location.id}} </div>
<div><img src="{{"/static/img/text.png" if location.loc_type == "message"}}{{"/static/img/audio.png" if location.loc_type == "audio"}}{{"/static/img/hangout.png" if location.loc_type == "hangout"}}{{"/static/img/mosquito.png" if location.loc_type == "mosquito"}}" alt=""></div>
2 years ago
<div>{{location.longitude}}, {{location.latitude}}</div>
<div>{{location.message if location.loc_type == "message"}}{{location.message if location.loc_type == "audio"}}</div>
2 years ago
<div>
{% if location.loc_type == "audio" %}
<audio id="audio-player" controls="" src="uploads/{{location.audio}}" type="audio/mp3"></audio>
2 years ago
{% endif %}
</div>
<div>
<a class="delete_btn" href="location/{{location.id}}/delete">delete</a>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock main %}
{% block js %}
<script>
</script>
{% endblock js %}