<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>All Articles</title>
</head>
<body>
<form method="POST" action="changeNbArticle">
    <input name="nbArticle" type="number" min="0">
    <button type="submit">Change number of articles</button>
</form>
{% for article in dVue.data %}
    <p>
        {{article.dateStr()}}
        <img src="{{ article.getMediaContent }}"/>
        <a href="{{ article.getLink() }}" target="_blank">{{ article.getTitle() }}</a>
        {{ article.getDescription() }}
    </p>
{% endfor %}
<script>
    // Actualiser la page toutes les 5 secondes
    setTimeout(function(){
        location.reload();
    }, 50000);
</script>
<a href="/~mapoint2/SAE/Php_RSS/fluxRSS/admin/listFlux">Vue flux</a>
<a href="/~mapoint2/SAE/Php_RSS/fluxRSS/admin/deconnection">Déconnection</a>
</body>
</html>