|
|
|
@ -23,14 +23,18 @@
|
|
|
|
|
<button type="submit">Change number of articles</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{% for article in dVue.data %}
|
|
|
|
|
<p class="caseInfo">
|
|
|
|
|
{{article.dateStr()}}<br>
|
|
|
|
|
<img class="img-thumbnail imgArticle" src="{{ article.getMediaContent }}"/>
|
|
|
|
|
<a class="modal-content enTitre" href="{{ article.getLink() }}" target="_blank">{{ article.getTitle() }}</a>
|
|
|
|
|
{{ article.getDescription() }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if dVue.data is defined %}
|
|
|
|
|
{% for article in dVue.data %}
|
|
|
|
|
<p class="caseInfo">
|
|
|
|
|
{{article.dateStr()}}<br>
|
|
|
|
|
<img class="img-thumbnail imgArticle" src="{{ article.getMediaContent }}"/>
|
|
|
|
|
<a class="modal-content enTitre" href="{{ article.getLink() }}" target="_blank">{{ article.getTitle() }}</a>
|
|
|
|
|
{{ article.getDescription() }}
|
|
|
|
|
</p>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<p class="d-flex justify-content-center enTitre"> Pas d'articles à afficher</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<script>
|
|
|
|
|
// Actualiser la page toutes les 5 secondes
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|