0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
3 | {* Copyright (C) 2003-2004 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 | |
24 | {if $cp} |
25 | <table class="bicol" summary="Ruptures de service"> |
26 | <tr> |
27 | <th colspan="2">détails de l'interruption de service</th> |
28 | </tr> |
29 | <tr class="pair"> |
30 | <td class="titre">début</td> |
31 | <td>{$cp.debut|date_format:"%x %X"}</td> |
32 | </tr> |
33 | <tr class="pair"> |
34 | <td class="titre">durée</td> |
35 | <td>{$cp.duree}</td> |
36 | </tr> |
37 | <tr class="impair"> |
38 | <td class="titre">résumé</td> |
39 | <td>{$cp.resume}</td> |
40 | </tr> |
41 | <tr class="impair"> |
42 | <td class="titre">services</td> |
43 | <td> |
44 | {$cp.lg_services} |
45 | </td> |
46 | </tr> |
47 | <tr class="pair"> |
48 | <td class="titre">description </td> |
49 | <td>{$cp.description}</td> |
50 | </tr> |
51 | </table> |
52 | |
53 | <p class="center"> |
54 | <a href="{$smarty.server.PHP_SELF}">retour à la liste</a> |
55 | </p> |
56 | |
57 | {else} |
58 | |
59 | <p> |
60 | Tu trouveras ici les interruptions de service de Polytechnique.org qui ont été |
61 | constatées <strong>durant les trois dernières semaines</strong>, ou qui sont prévues dans le futur. |
62 | Il est à noter qu'à ce jour la quasi-totalité des coupures proviennent |
63 | de défaillances du réseau de l'Ecole, où nos serveurs sont hébergés (rupture de la |
64 | connexion internet de l'Ecole, problème électrique, etc...). |
65 | </p> |
66 | <p> |
67 | Pour avoir les détails d'une interruption particulière il te suffit de cliquer dessus. |
68 | </p> |
69 | |
70 | <table class="bicol" summary="Détail de la coupure"> |
71 | <tr> |
72 | <th>date</th> |
73 | <th>résumé</th> |
74 | <th>services affectés</th> |
75 | </tr> |
76 | {iterate item=cp from=$coupures} |
77 | <tr class="{cycle values="pair,impair"}"> |
78 | <td> |
79 | <span class="smaller"> |
80 | {$cp.debut|date_format} |
81 | </span> |
82 | </td> |
83 | <td> |
84 | <span class="smaller"> |
85 | <a href="{$smarty.server.PHP_SELF}?cp_id={$cp.id}">{$cp.resume}</a> |
86 | </span> |
87 | </td> |
88 | <td> |
89 | <span class="smaller"> |
90 | {$cp.services} |
91 | </span> |
92 | </td> |
93 | </tr> |
94 | {/iterate} |
95 | </table> |
96 | {/if} |
97 | |
98 | {* vim:set et sw=2 sts=2 sws=2: *} |