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