Skip to content
Snippets Groups Projects
Unverified Commit ac2b3f67 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

chronicles (#2696)

parent 3d2c2569
No related branches found
No related tags found
No related merge requests found
<%= osuny_panel t('admin.chronicles.title') do %>
<div id="chronicles-feed"></div>
<%= link_to t('admin.chronicles.read_all'), 'https://chroniques.osuny.org', target: :_blank %>
<% end %>
<script nonce="<%= request.content_security_policy_nonce %>">
......@@ -15,7 +16,7 @@ fetch(RSS_URL)
items.forEach(item => {
let title = item.querySelector("title");
let link = item.querySelector("link");
if (title == '' || link == '' || index >= 12) {
if (title == '' || link == '' || index >= 4) {
return;
}
let pubDate = item.querySelector("pubDate");
......
......@@ -121,6 +121,7 @@ en:
advanced_settings: Advanced settings
attachment_not_available: Attachment not available
chronicles:
read_all: See all chronicles
read_more: Learn more
title: Chronicles
dashboard: Dashboard
......
......@@ -121,6 +121,7 @@ fr:
advanced_settings: Réglages avancés
attachment_not_available: Impossible d'accéder à l'élément
chronicles:
read_all: Voir toutes les chroniques
read_more: En savoir plus
title: Chroniques
dashboard: Tableau de bord
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment