Happy New Year!
[platal.git] / templates / xnetgrp / asso.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
12262f13 3{* Copyright (C) 2003-2011 Polytechnique.org *}
0337d704 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
34ade5a6 23<h1>{$asso->nom}&nbsp;: Accueil</h1>
0337d704 24
25<table cellpadding="0" cellspacing="0" class='tiny'>
34ade5a6 26 {if $asso->site}
0337d704 27 <tr>
28 <td class="titre">
841ff7e7 29 Site Web&nbsp;:
0337d704 30 </td>
34ade5a6 31 <td><a href="{$asso->site}">{$asso->site}</a></td>
0337d704 32 </tr>
33 {/if}
34
34ade5a6 35 {if $asso->resp || $asso->mail}
0337d704 36 <tr>
37 <td class="titre">
841ff7e7 38 Contact&nbsp;:
0337d704 39 </td>
40 <td>
34ade5a6
FB
41 {if $asso->mail}
42 {mailto address=$asso->mail text=$asso->resp|utf8_decode|default:"par email" encode=javascript}
0337d704 43 {else}
34ade5a6 44 {$asso->resp}
0337d704 45 {/if}
46 </td>
47 </tr>
48 {/if}
49
34ade5a6 50 {if $asso->forum}
0337d704 51 <tr>
52 <td class="titre">
841ff7e7 53 Forum&nbsp;:
0337d704 54 </td>
55 <td>
4f355064 56 <a href="{$platal->ns}forum">par le web</a>
34ade5a6 57 ou <a href="news://ssl.polytechnique.org/{$asso->forum}">par nntp</a>
0337d704 58 </td>
59 </tr>
60 {/if}
61
34ade5a6 62 {if !$is_member && $is_logged && $asso->inscriptible && $xnet_type != 'promotions'}
0337d704 63 <tr>
64 <td class="titre">
e8439508 65 M'inscrire&nbsp;:
0337d704 66 </td>
67 <td>
34ade5a6 68 <a href="{if $asso->sub_url}{$asso->sub_url}{else}{$platal->ns}subscribe{/if}">m'inscrire</a>
0337d704 69 </td>
70 </tr>
30032578 71 {elseif $is_member}
72 <tr>
73 <td class="titre">
e8439508 74 Me désinscrire&nbsp;:
30032578 75 </td>
76 <td>
34ade5a6 77 <a href="{if $asso->unsub_url}{$asso->unsub_url}{else}{$platal->ns}unsubscribe{/if}">me désinscrire</a>
30032578 78 </td>
79 </tr>
0337d704 80 {/if}
81
34ade5a6 82 {if $asso->ax}
0337d704 83 <tr>
84 <td class="titre center" colspan="2">
a7de4ef7 85 groupe agréé par l'AX
0337d704 86 </td>
87 </tr>
88 {/if}
4af7fd22
FB
89
90 {if $is_admin && $requests}
91 <tr>
92 <td class="titre center" colspan="2">
93 <a href="{$platal->ns}subscribe/valid">{$requests} demande{if $requests gt 1}s{/if} d'inscription en attente</a>
94 </td>
95 </tr>
96 {/if}
0337d704 97</table>
98
99<br />
100
24bcf50c 101<div style="text-align: justify">
34ade5a6 102 {$asso->descr|miniwiki:title|smarty:nodefaults}
0337d704 103</div>
104
24bcf50c 105<br />
106
a6761ca9 107{if t($article_index) && $article_index->total()}
24bcf50c 108<table class="tinybicol">
109 <tr>
110 <th>
2ab3486b
SJ
111 {if $smarty.session.user->token}
112 <a href='{$platal->ns}rss/{$smarty.session.hruid}/{$smarty.session.user->token}/rss.xml' style="display:block;float:right">
24bcf50c 113 {icon name=feed title='fil rss'}
114 </a>
115 {else}
116 <a href='https://www.polytechnique.org/prefs/rss?referer=events' style="display:block;float:right">
117 {icon name=feed_add title='Activer mon fil rss'}
118 </a>
119 {/if}
120 Sommaire des annonces du groupe
121 </th>
122 </tr>
123 {iterate item=art from=$article_index}
124 <tr>
aab2ffdd 125 <td>&bull;
24bcf50c 126 {if $art.nonlu}
2a557a09 127 <a href="{$platal->ns}#art{$art.id}"><strong>
24bcf50c 128 {else}
2a557a09 129 <a href="{$platal->ns}?unread={$art.id}">
24bcf50c 130 {/if}
131 {tidy}{$art.titre}{/tidy}
2a557a09 132 {if $art.nonlu}</strong>{/if}</a>
24bcf50c 133 </td>
134 </tr>
135 {/iterate}
d1c97e42 136 {if $is_admin}
137 <tr class="pair">
138 <td class="center">
139 <a href="{$platal->ns}announce/new">{icon name=add} Ajouter une annonce</a>
140 </td>
141 </tr>
142 {/if}
24bcf50c 143</table>
24bcf50c 144
8e95ff41 145<br />
146
147{if $articles->total()}
148<div>
149{iterate item=art from=$articles}
892083ef 150{include file="xnetgrp/form.announce.tpl"}
8e95ff41 151<br />
152{/iterate}
153</div>
8e95ff41 154
d1c97e42 155<p style="text-align: justify;">
156<small>
e8439508 157<em>Nota Bene&nbsp;:</em> les informations présentées ici n'engagent que leurs auteurs
a7de4ef7 158respectifs et sont publiées à leur initiative. L'association Polytechnique.org
159ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
160sur cet espace d'expression et d'information. Elle se réserve le droit de
161refuser ou de retirer toute information de nature diffamante ou pouvant être
e219710a 162interprétée comme polémique par un lecteur.
d1c97e42 163</small>
164</p>
165{/if}
166{elseif $is_admin}
24bcf50c 167<div class="center">
1970c12b 168 [<a href="{$platal->ns}announce/new">{icon name=page_edit} Ajouter une annonce</a>]
24bcf50c 169</div>
170{/if}
171
a7de4ef7 172{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}