add list of cohortes
This commit is contained in:
parent
adb0989b22
commit
dbd1e5a927
7 changed files with 74 additions and 60 deletions
|
@ -14,6 +14,7 @@ def main():
|
|||
channels_list = []
|
||||
messages_total = 0
|
||||
messages_recent = 0
|
||||
cohortes = []
|
||||
|
||||
recent_date = datetime.now() - monthdelta()
|
||||
|
||||
|
@ -33,6 +34,8 @@ def main():
|
|||
messages_total += int(channel["msgs"])
|
||||
date = channel["lm"]
|
||||
channel_date = datetime.strptime(date, "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
if channel["name"].startswith("cohorte-"):
|
||||
cohortes.append(channel["name"][8:])
|
||||
if channel_date > recent_date:
|
||||
channels_recent += 1
|
||||
|
||||
|
@ -66,7 +69,8 @@ def main():
|
|||
"messages": {
|
||||
"total": messages_total,
|
||||
"recent": messages_recent
|
||||
}
|
||||
},
|
||||
"cohortes": cohortes
|
||||
}
|
||||
|
||||
save(info)
|
||||
|
|
|
@ -16,6 +16,13 @@ $(document).ready(function() {
|
|||
var li = $("<li>").append(link);
|
||||
$(".chat ul").append(li);
|
||||
});
|
||||
$.each(data.cohortes, function(i, canal) {
|
||||
var links = $("<a>")
|
||||
.attr("href", "https://coa.crapaud-fou.org/channel/cohorte-" + canal)
|
||||
.attr("class", "badge badge-success mr-1")
|
||||
.text(canal);
|
||||
$(".cohortes").append(links);
|
||||
});
|
||||
});
|
||||
|
||||
// idees
|
||||
|
@ -47,12 +54,12 @@ $(document).ready(function() {
|
|||
$(".wiki .recent .pages").text(data.pages.recent);
|
||||
$(".wiki .recent .photos").text(data.photos.recent);
|
||||
$(".wiki ul").text("");
|
||||
$.each(data.pages.liste, function(index, idee) {
|
||||
$.each(data.pages.liste, function(index, page) {
|
||||
var link = $("<a>")
|
||||
.attr("href", "https://wiki.crapaud-fou.org/" + index)
|
||||
.attr("class", "list-item")
|
||||
.attr("title", idee)
|
||||
.text(idee);
|
||||
.attr("title", page)
|
||||
.text(page);
|
||||
var li = $("<li>").append(link);
|
||||
$(".wiki ul").append(li);
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"crapauds": {"total": 2365, "recent": 181}, "canaux": {"total": 177, "recent": 99, "liste": ["semourais", "accueil", "general", "right-to-repair", "wiki-crapaud-fou", "cohorte-loire", "reflexion-sur-l-argent", "le-led", "empowerment", "libre"]}, "messages": {"total": 186095, "recent": 13043}}
|
||||
{"crapauds": {"total": 2373, "recent": 180}, "canaux": {"total": 177, "recent": 98, "liste": ["semourais", "accueil", "general", "techos", "right-to-repair", "wiki-crapaud-fou", "reflexion-sur-l-argent", "cohorte-loire", "empowerment", "le-led"]}, "messages": {"total": 187094, "recent": 13313}, "cohortes": ["2607", "34", "barcelone", "belgique", "bourgogne", "bretagne", "centre", "grand-est", "grece", "grenoble", "hdf", "ile-de-france", "la-reunion", "loire", "lyon-st-etienne", "normandie", "paca", "paysdesavoie", "sud-ouest", "suisse"]}
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"crapauds": {
|
||||
"total": 457,
|
||||
"recent": 23
|
||||
"total": "451",
|
||||
"recent": "11"
|
||||
},
|
||||
"idees": {
|
||||
"total": 182,
|
||||
"recent": 5,
|
||||
"total": "182",
|
||||
"recent": "0",
|
||||
"liste": {
|
||||
"1674": "Démarrer un système (en partie) non monétaire, simultanément et par dizaine de milliers",
|
||||
"1671": "Blueforest - une force commune pour la prise de conscience écologique.",
|
||||
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
},
|
||||
"commentaires": {
|
||||
"total": 566,
|
||||
"recent": 12
|
||||
"total": "1009",
|
||||
"recent": "6"
|
||||
}
|
||||
}
|
|
@ -1,26 +1,26 @@
|
|||
{
|
||||
"crapauds": {
|
||||
"total": 163,
|
||||
"recent": 0
|
||||
"total": "163",
|
||||
"recent": "22"
|
||||
},
|
||||
"pages": {
|
||||
"total": 133,
|
||||
"recent": 0,
|
||||
"liste": [
|
||||
"Biblio Semourais",
|
||||
"NO-GAFAM",
|
||||
"Terre de convergence",
|
||||
"Rencontres",
|
||||
"Kit semourais pour monter une pépinière participative",
|
||||
"Assises Debout la Maurienne",
|
||||
"Cohortes",
|
||||
"Cohorte Lyon St Etienne",
|
||||
"Semourais",
|
||||
"Les atouts de la méthode Miyawaki"
|
||||
]
|
||||
"total": "133",
|
||||
"recent": "65",
|
||||
"liste": {
|
||||
"NO-GAFAM": "NO-GAFAM",
|
||||
"Biblio-Semourais": "Biblio Semourais",
|
||||
"Terre-de-convergence": "Terre de convergence",
|
||||
"Rencontres": "Rencontres",
|
||||
"Kit-semourais-pour-monter-une-pépinière-participative": "Kit semourais pour monter une pépinière participative",
|
||||
"Assises-Debout-la-Maurienne": "Assises Debout la Maurienne",
|
||||
"Cohortes": "Cohortes",
|
||||
"Cohorte-Lyon-St-Etienne": "Cohorte Lyon St Etienne",
|
||||
"Semourais": "Semourais",
|
||||
"Les-atouts-de-la-méthode-Miyawaki": "Les atouts de la méthode Miyawaki"
|
||||
}
|
||||
},
|
||||
"photos": {
|
||||
"total": 880,
|
||||
"recent": 0
|
||||
"total": "880",
|
||||
"recent": "162"
|
||||
}
|
||||
}
|
|
@ -57,11 +57,12 @@
|
|||
<div class="col-12 col-md-4 col-lg-3">
|
||||
<h2 class="d-sm-none d-xs-none d-md-block"> </h2>
|
||||
<ul>
|
||||
<li><a href="">Le manifeste</a></li>
|
||||
<li><a href="">Compte Rendu</a></li>
|
||||
<li><a href="">Les 3 tsunamis</a></li>
|
||||
<li><a href="">9 cercles de reflexion</a></li>
|
||||
<li><a href="">Le manifeste en librairie</a></li>
|
||||
<li><a href="https://crapaud-fou.org/manifeste_du_crapaud/">Le manifeste</a></li>
|
||||
<li><a href="https://crapaud-fou.org/treilles_cr/">Compte Rendu des Treilles</a></li>
|
||||
<li><a href="https://crapaud-fou.org/principes_crapaud/">Les principes</a></li>
|
||||
<li><a href="https://crapaud-fou.org/cercles/">9 cercles de reflexion</a></li>
|
||||
<li><a href="https://framalistes.org/sympa/info/crapauds-fous">la liste de diffusion</a></li>
|
||||
<li><a href="https://crapaud-fou.org/news/2017-10-12-le_bouquin/">Le manifeste en librairie</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-12 col-lg-5 align-middle">
|
||||
|
@ -210,7 +211,9 @@
|
|||
<div class="card-body">
|
||||
<h4>Cohortes de crapauds fous</h4>
|
||||
<p>Les cohortes de crapauds sont des regroupements locaux, pour se voir dans la vraie vie.</p>
|
||||
<p>Suivez leur activité sur la <a href="https://wiki.crapaud-fou.org/Cohortes">page wiki des cohortes</a>.</p>
|
||||
<p>Suivez leur activité sur la <a href="https://wiki.crapaud-fou.org/Cohortes">page wiki des cohortes</a> ou rejoignez-les sur leurs canaux de discussion:</p>
|
||||
<p class="cohortes">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue