Commit ac60e267 authored by Pierre's avatar Pierre

cachet json incidents

parent a5068bc6
[(#REM) <!-- les infos techniques DP Non Résolu !!! --> ] [(#REM) <!-- les infos techniques DP Non Résolu !!! --> ]
#SET{nonresolus, #ARRAY}
<BOUCLE_afficher(DATA){source json,https://cachet.domainepublic.net/api/v1/incidents}>
<BOUCLE_images(DATA){source table,#VALEUR}{par id}{inverse}>
[(#VALEUR|table_valeur{status}|!=={4}|et{#VALEUR|table_valeur{id}}|oui)
#SET{nonresolus, #GET{nonresolus}|push{#VALEUR}}
]
</BOUCLE_images>
</BOUCLE_afficher>
#SET{resolu, [Résolu]} #SET{resolu, [Résolu]}
<B_infotech_non_resolu> <B_nonresolus>
<div class="nav-shortcuts well hu-red hero-unit "> <div class="nav-shortcuts well hu-red hero-unit ">
<ul class="menu-liste menu-items nav-list nav"> <ul class="menu-liste menu-items nav-list nav">
<h1 style="color:#990000">Incidents en cours</h1> <h1 style="color:#990000">Incidents en cours</h1>
<BOUCLE_infotech_non_resolu(ARTICLES) {id_mot=54}{!par date}{!titre LIKE %(#GET{resolu})%}> <B_infotech_non_resolu>
<BOUCLE_infotech_non_resolu(ARTICLES) {id_mot=54}{!par date}{!titre LIKE %(#GET{resolu})%}{0,0}>
<li class="menu-entree item"> <li class="menu-entree item">
<a href="#URL_ARTICLE" title="[(#DESCRIPTIF|couper{200})]"> <a href="#URL_ARTICLE" title="[(#DESCRIPTIF|couper{200})]">
[(#DATE|affdate_court)&nbsp;>&nbsp;]#TITRE [(#DATE|affdate_court)&nbsp;>&nbsp;]#TITRE
</a> </a>
</li> </li>
</BOUCLE_infotech_non_resolu> </BOUCLE_infotech_non_resolu>
<BOUCLE_infotech_site(SITES) {id_syndic=172}> <BOUCLE_infotech_site(SITES) {id_syndic=172}{0,0}>
<li class="menu-entree item"> <li class="menu-entree item">
<h2><a href="[(#URL_SITE)]" title="[(#DESCRIPTIF|couper{200})]"><:menu_incidents:></a></h2> <h2><a href="[(#URL_SITE)]" title="[(#DESCRIPTIF|couper{200})]"><:menu_incidents:></a></h2>
</li> </li>
</BOUCLE_infotech_site> </BOUCLE_infotech_site>
<BOUCLE_nonresolus(DATA){source table,#GET{nonresolus}}{par id}{inverse}>
<li class="menu-entree item">
<a href="https://cachet.domainepublic.net/?start_date=[(#VALEUR|table_valeur{created_at}|couper{10,""})]" title="[(#VALEUR|table_valeur{message}|couper{200})]">
[(#VALEUR|table_valeur{created_at}|affdate_court)]&nbsp;>&nbsp;[(#VALEUR|table_valeur{name})]
</a>
</li>
</BOUCLE_nonresolus>
</ul> </ul>
</div> </div>
</B_infotech_non_resolu> </B_nonresolus>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment