2006 => 2007 Happy New Year\!
[platal.git] / templates / stats / coupure.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 {if $cp}
24 <table class="bicol" summary="Ruptures de service">
25   <tr>
26     <th colspan="2">détails de l'interruption de service</th>
27   </tr>
28   <tr class="pair">
29     <td class="titre">début</td>
30     <td>{$cp.debut|date_format:"%x %X"}</td>
31   </tr>
32   <tr class="pair">
33     <td class="titre">durée</td>
34     <td>{$cp.duree}</td>
35   </tr>
36   <tr class="impair">
37     <td class="titre">résumé</td>
38     <td>{$cp.resume}</td>
39   </tr>
40   <tr class="impair">
41     <td class="titre">services</td>
42     <td>
43       {$cp.lg_services}
44     </td>
45   </tr>
46   <tr class="pair">
47     <td class="titre">description </td>
48     <td>{$cp.description}</td>
49   </tr>
50 </table>
51
52 <p class="center">
53 <a href="stats/coupures">retour à la liste</a>
54 </p>
55
56 {else}
57
58 <p>
59   Tu trouveras ici les interruptions de service de Polytechnique.org qui ont été
60   constatées <strong>durant les trois dernières semaines</strong>, ou qui sont prévues dans le futur.
61   Il est à noter qu'à ce jour la quasi-totalité des coupures proviennent 
62   de défaillances du réseau de l'Ecole, où nos serveurs sont hébergés (rupture de la
63   connexion internet de l'Ecole, problème électrique, etc...).
64 </p>
65 <p>
66   Pour avoir les détails d'une interruption particulière il te suffit de cliquer dessus.
67 </p>
68
69 <table class="bicol" summary="Détail de la coupure">
70   <tr>
71     <th>date</th>
72     <th>résumé</th>
73     <th>services affectés</th>
74   </tr>
75 {iterate item=cp from=$coupures}
76   <tr class="{cycle values="pair,impair"}">
77     <td>
78       <span class="smaller">
79         {$cp.debut|date_format}
80       </span>
81     </td>
82     <td>
83       <span class="smaller">
84         <a href="stats/coupures/{$cp.id}">{$cp.resume}</a>
85       </span>
86     </td>
87     <td>
88       <span class="smaller">
89         {$cp.services}
90       </span>
91     </td>
92   </tr>
93 {/iterate}
94 </table>
95 {/if}
96
97 {* vim:set et sw=2 sts=2 sws=2: *}