Happy New Year!
[platal.git] / templates / xnetgrp / asso.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 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
8c5bbd3f
SJ
50 {if $asso->positions|count}
51 <tr>
52 <td class="titre">
53 Bureau&nbsp;:
54 </td>
55 <td>
56 {foreach from=$asso->positions item=position}
57 <em>&bull;&nbsp;{$position.position}&nbsp;:</em> {profile user=$position.uid promo=true}<br />
58 {/foreach}
59 </td>
60 </tr>
61 {/if}
62
34ade5a6 63 {if $asso->forum}
0337d704 64 <tr>
65 <td class="titre">
841ff7e7 66 Forum&nbsp;:
0337d704 67 </td>
68 <td>
4f355064 69 <a href="{$platal->ns}forum">par le web</a>
34ade5a6 70 ou <a href="news://ssl.polytechnique.org/{$asso->forum}">par nntp</a>
0337d704 71 </td>
72 </tr>
73 {/if}
74
a174a707
SJ
75 {if $asso->phone}
76 <tr>
77 <td class="titre">Téléphone&nbsp;:</td>
78 <td>{$asso->phone}</td>
79 </tr>
80 {/if}
81
82 {if $asso->fax}
83 <tr>
84 <td class="titre">Fax&nbsp;:</td>
85 <td>{$asso->fax}</td>
86 </tr>
87 {/if}
88
baab50c7
SJ
89 {if $asso->address}
90 <tr>
91 <td class="titre">Adresse&nbsp;:</td>
92 <td>{$asso->address}</td>
93 </tr>
94 {/if}
95
34ade5a6 96 {if !$is_member && $is_logged && $asso->inscriptible && $xnet_type != 'promotions'}
0337d704 97 <tr>
98 <td class="titre">
e8439508 99 M'inscrire&nbsp;:
0337d704 100 </td>
101 <td>
34ade5a6 102 <a href="{if $asso->sub_url}{$asso->sub_url}{else}{$platal->ns}subscribe{/if}">m'inscrire</a>
0337d704 103 </td>
104 </tr>
30032578 105 {elseif $is_member}
106 <tr>
107 <td class="titre">
e8439508 108 Me désinscrire&nbsp;:
30032578 109 </td>
110 <td>
34ade5a6 111 <a href="{if $asso->unsub_url}{$asso->unsub_url}{else}{$platal->ns}unsubscribe{/if}">me désinscrire</a>
30032578 112 </td>
113 </tr>
0337d704 114 {/if}
115
34ade5a6 116 {if $asso->ax}
0337d704 117 <tr>
118 <td class="titre center" colspan="2">
004ff79e 119 groupe agréé par l'AX {if $asso->axDate}le {$asso->axDate}{/if}
0337d704 120 </td>
121 </tr>
122 {/if}
4af7fd22
FB
123
124 {if $is_admin && $requests}
125 <tr>
126 <td class="titre center" colspan="2">
127 <a href="{$platal->ns}subscribe/valid">{$requests} demande{if $requests gt 1}s{/if} d'inscription en attente</a>
128 </td>
129 </tr>
130 {/if}
0337d704 131</table>
132
133<br />
134
24bcf50c 135<div style="text-align: justify">
34ade5a6 136 {$asso->descr|miniwiki:title|smarty:nodefaults}
0337d704 137</div>
138
24bcf50c 139<br />
140
a6761ca9 141{if t($article_index) && $article_index->total()}
24bcf50c 142<table class="tinybicol">
143 <tr>
144 <th>
2ab3486b
SJ
145 {if $smarty.session.user->token}
146 <a href='{$platal->ns}rss/{$smarty.session.hruid}/{$smarty.session.user->token}/rss.xml' style="display:block;float:right">
24bcf50c 147 {icon name=feed title='fil rss'}
148 </a>
149 {else}
150 <a href='https://www.polytechnique.org/prefs/rss?referer=events' style="display:block;float:right">
151 {icon name=feed_add title='Activer mon fil rss'}
152 </a>
153 {/if}
154 Sommaire des annonces du groupe
155 </th>
156 </tr>
157 {iterate item=art from=$article_index}
158 <tr>
aab2ffdd 159 <td>&bull;
24bcf50c 160 {if $art.nonlu}
2a557a09 161 <a href="{$platal->ns}#art{$art.id}"><strong>
24bcf50c 162 {else}
2a557a09 163 <a href="{$platal->ns}?unread={$art.id}">
24bcf50c 164 {/if}
165 {tidy}{$art.titre}{/tidy}
2a557a09 166 {if $art.nonlu}</strong>{/if}</a>
24bcf50c 167 </td>
168 </tr>
169 {/iterate}
d1c97e42 170 {if $is_admin}
171 <tr class="pair">
172 <td class="center">
173 <a href="{$platal->ns}announce/new">{icon name=add} Ajouter une annonce</a>
174 </td>
175 </tr>
176 {/if}
24bcf50c 177</table>
24bcf50c 178
8e95ff41 179<br />
180
181{if $articles->total()}
182<div>
183{iterate item=art from=$articles}
892083ef 184{include file="xnetgrp/form.announce.tpl"}
8e95ff41 185<br />
186{/iterate}
187</div>
8e95ff41 188
d1c97e42 189<p style="text-align: justify;">
190<small>
e8439508 191<em>Nota Bene&nbsp;:</em> les informations présentées ici n'engagent que leurs auteurs
a7de4ef7 192respectifs et sont publiées à leur initiative. L'association Polytechnique.org
193ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
194sur cet espace d'expression et d'information. Elle se réserve le droit de
195refuser ou de retirer toute information de nature diffamante ou pouvant être
e219710a 196interprétée comme polémique par un lecteur.
d1c97e42 197</small>
198</p>
199{/if}
200{elseif $is_admin}
24bcf50c 201<div class="center">
1970c12b 202 [<a href="{$platal->ns}announce/new">{icon name=page_edit} Ajouter une annonce</a>]
24bcf50c 203</div>
204{/if}
205
a85ce13e
SJ
206{if t($payments)}
207<p>Télépaiements publics pour le groupe {$asso->nom}&nbsp;:</p>
208<ul>
209{foreach from=$payments item=payment}
210<li><a href="{$platal->ns}payment/{$payment.id}">{icon name=money title="Télépaiement"}{$payment.text}</a></li>
211{/foreach}
212</ul>
213{/if}
214
a7de4ef7 215{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}