Commit | Line | Data |
---|---|---|
24bcf50c | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
24bcf50c | 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 | <table class="tinybicol" id="art{$art.id}"> | |
24 | <tr> | |
ff95a302 | 25 | <th {if $art.photo}colspan="2"{/if}> |
27eda1a4 | 26 | {if $is_logged && !$admin} |
24bcf50c | 27 | <div style="float: right"> |
28 | {if $is_admin} | |
29 | <a href="{$platal->ns}announce/edit/{$art.id}">{icon name=page_edit title="Editer cet article"}</a> | |
30 | {/if} | |
31 | <a href="{$platal->ns}?read={$art.id}">{icon name=cross title="Cacher cet article"}</a> | |
32 | </div> | |
33 | {/if} | |
34 | {tidy} | |
e8439508 | 35 | {if $admin}Aperçu de : {/if}{$art.titre} |
24bcf50c | 36 | {/tidy} |
37 | </th> | |
38 | </tr> | |
39 | <tr> | |
ff95a302 FB |
40 | {if $art.photo} |
41 | <td rowspan="{if ($is_logged || $admin) && $art.contacts}3{else}2{/if}" style="width: 100px"> | |
42 | <img src="{$platal->ns}announce/photo/{$art.id}" alt="{$art.titre}" style="width: 100px" /> | |
43 | </td> | |
44 | {/if} | |
24bcf50c | 45 | <td style="padding-bottom: 1em"> |
794feea7 | 46 | {$art.texte|miniwiki|smarty:nodefaults} |
24bcf50c | 47 | </td> |
48 | </tr> | |
27eda1a4 | 49 | {if ($is_logged || $admin) && $art.contacts} |
24bcf50c | 50 | <tr class="pair"> |
e8439508 | 51 | <td class="titre">Contacts :</td> |
24bcf50c | 52 | </tr> |
53 | <tr class="pair"> | |
54 | <td style="padding-left: 20px"> | |
b9a1ba64 | 55 | {if $art.contact_html} |
794feea7 | 56 | {tidy} |
b9a1ba64 | 57 | {$art.contact_html|nl2br|smarty:nodefaults} |
794feea7 | 58 | {/tidy} |
b9a1ba64 | 59 | {else} |
794feea7 | 60 | {$art.contacts|miniwiki|smarty:nodefaults} |
b9a1ba64 | 61 | {/if} |
24bcf50c | 62 | </td> |
63 | </tr> | |
64 | {/if} | |
e219710a | 65 | <tr class="pair"> |
ff95a302 | 66 | <td {if $art.photo}colspan="2"{/if}> |
e219710a | 67 | <div style="float: right"> |
24bcf50c | 68 | <small> |
f00c59e8 | 69 | Annonce proposée par {profile user=$art.user_id sex=false promo=true groupperms=false} |
24bcf50c | 70 | </small> |
e219710a | 71 | </div> |
72 | <small> | |
73 | {if $art.post_id} | |
74 | <a href="{$platal->ns}forum/read/{$art.post_id}">{icon name=comments title="Discussions"}Discuter</a> | |
75 | {/if} | |
76 | </small> | |
24bcf50c | 77 | </td> |
78 | </tr> | |
79 | </table> | |
80 | ||
a7de4ef7 | 81 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |