Spaces:
Runtime error
Runtime error
<html> | |
<head> | |
<title>Traduction Yipunu</title> | |
<style> | |
.translation-container { | |
border: 1px solid #ddd; | |
padding: 10px; | |
margin: 10px; | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Traductions Yipunu</h1> | |
{% for translation in translations %} | |
<div class="translation-container"> | |
<div> | |
<p><strong>Français:</strong> {{ translation.fr }}</p> | |
<p><strong>Yipunu:</strong> {{ translation.yi }}</p> | |
<p> | |
Likes: {{ translation.likes }} | Dislikes: {{ translation.dislikes }} | |
</p> | |
</div> | |
<div> | |
<a href="{{ url_for('vote', id=translation.id, action='like') }}">Like</a> | |
<a href="{{ url_for('vote', id=translation.id, action='dislike') }}">Dislike</a> | |
{% if not translation.feedback_sent %} | |
<form action="{{ url_for('submit_feedback', id=translation.id) }}" method="POST"> | |
<textarea name="feedback" placeholder="Laissez votre avis"></textarea> | |
<button type="submit">Envoyer avis</button> | |
</form> | |
{% else %} | |
<p>Feedback envoyé</p> | |
{% endif %} | |
</div> | |
</div> | |
{% endfor %} | |
</body> | |
</html> |