Remove community letters from non-community members menu.
[platal.git] / templates / skin / common.menu.tpl
CommitLineData
62a66dfc 1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 Polytechnique.org *}
62a66dfc 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
c6db254a 23{if !$smarty.session.auth}
62a66dfc 24<div class="menu_title">Polytechniciens</div>
6c85148b 25<div class="menu_item"><a href="login">Me connecter !</a></div>
62a66dfc 26<div class="menu_item"><a href="register">M'inscrire</a></div>
6bb2f79a 27<div class="menu_item"><a href="Xorg/PourquoiMInscrire">Pourquoi m'inscrire&nbsp;?</a></div>
62a66dfc 28
29<div class="menu_title">Visiteurs</div>
30<div class="menu_item"><a href="search">Annuaire de l'X</a></div>
31<div class="menu_item"><a href="http://www.polytechnique.net/">Associations X</a></div>
32<div class="menu_item"><a href="http://www.manageurs.com/">Recrutement</a></div>
33
34<div class="menu_title">Informations</div>
661e78f7 35<div class="menu_item"><a href="Equipe/APropos">À propos du site</a></div>
af3f07c5 36<div class="menu_item"><a href="Xorg/NousContacter">Nous contacter</a></div>
37<div class="menu_item"><a href="Xorg/FAQ">FAQ</a></div>
6b590724 38
39{else}
62a66dfc 40
bfe9f4c7 41{if $smarty.session.auth == AUTH_PASSWD}
a7de4ef7 42<div class="menu_item"><a href="exit">Déconnexion</a></div>
62a66dfc 43{elseif $smarty.cookies.ORGaccess}
a7de4ef7 44<div class="menu_item"><a href="exit/forget">Déconnexion totale</a></div>
62a66dfc 45{/if}
46
47<div class="menu_title">Personnaliser</div>
4810af1e 48{if hasPerm('mail')}
62a66dfc 49<div class="menu_item"><a href="emails">Mes emails</a></div>
52858d0e
FB
50{/if}
51{if $smarty.session.user->hasProfile()}
62a66dfc 52<div class="menu_item"><a href="profile/edit">Mon profil</a></div>
52858d0e 53{/if}
4810af1e 54{if hasPerm('directory_private')}
62a66dfc 55<div class="menu_item"><a href="carnet/contacts">Mes contacts</a></div>
56<div class="menu_item"><a href="carnet">Mon carnet</a></div>
52858d0e 57{/if}
62a66dfc 58<div class="menu_item"><a href="password">Mon mot de passe</a></div>
a7de4ef7 59<div class="menu_item"><a href="prefs">Mes préférences</a></div>
62a66dfc 60
61<div class="menu_title">Services</div>
4810af1e 62{if hasPerm('mail')}
faefdbb7 63<div class="menu_item"><a href="emails/send">Envoyer un email</a></div>
52858d0e 64{/if}
4810af1e 65{if hasPerm('forums')}
93ee4187 66<div class="menu_item"><a href="banana/">Forums &amp; PA</a></div>
52858d0e 67{/if}
2ab3486b 68{if $smarty.session.user->googleapps}
faefdbb7 69<div class="menu_item"><a href="http://gmail.polytechnique.org/">Emails Google Apps</a></div>
ef057f1a 70{/if}
a88f005d 71{if hasPerm('user')}
62a66dfc 72<div class="menu_item"><a href="lists">Listes de diffusion</a></div>
a88f005d 73{/if}
4810af1e 74{if hasPerm('mail')}
62ce6356 75<div class="menu_item"><a href="emails/antispam/submit">Soumettre un spam</a></div>
4810af1e 76{/if}
a7de4ef7 77<div class="menu_item"><a href="emails/broken">Patte cassée</a></div>
62a66dfc 78
a7de4ef7 79<div class="menu_title">Communauté X</div>
62a66dfc 80<div class="menu_item"><a href="search">Annuaire</a></div>
45dcbe4d
SJ
81{if hasPerm('directory_private,edit_directory')}
82<div class="menu_item"><a href="map">Planisphère</a></div>
83{/if}
4810af1e 84{if hasPerm('directory_private')}
bac2d162 85<div class="menu_item"><a href="jobs">Emploi &amp; Carrières</a></div>
52858d0e 86{/if}
4810af1e 87{if hasPerm('groups')}
a1d79217 88<div class="menu_item"><a href="groupes-x">Mes groupes X</a></div>
52858d0e 89{/if}
cfabf452 90<div class="menu_item"><a href="survey">Sondages</a></div>
080632c7
RB
91{if hasPerm('directory_private') && $smarty.session.user->hasProfile()}
92 {assign var='profile' value=$smarty.session.user->profile()}
93 {if $profile->isDeltaTenEnabled(#Profile::DELTATEN_YOUNG#)}
94 <div class="menu_item"><a href="deltaten">Opération N N-10</a></div>
95 {/if}
96{/if}
62a66dfc 97
98<div class="menu_title">Informations</div>
af3f07c5 99<div class="menu_item"><a href="Xorg/">Documentations</a></div>
afd7e8c4 100{if hasPerm('directory_private') && $smarty.session.user->hasProfile()}
1c71fd24 101<div class="menu_item"><a href="nl">Lettres mensuelles</a></div>
26cba39a 102<div class="menu_item"><a href="comletter">Lettres de la communauté</a></div>
1c71fd24 103<div class="menu_item"><a href="ax">Lettres de l'AX</a></div>
3d26f61e 104<div class="menu_item"><a href="epletter">Lettres de l'École</a></div>
87d116c4 105<div class="menu_item"><a href="fxletter">Lettres de la FX</a></div>
afd7e8c4 106{/if}
af3f07c5 107<div class="menu_item"><a href="Xorg/NousContacter">Nous contacter</a></div>
b206cca9 108<div class="menu_item"><a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup2">Signaler un bug</a></div>
62a66dfc 109
908db125 110{if hasPerm('admin')}
62a66dfc 111<div class="menu_title">***</div>
112<div class="menu_item"><a href="marketing">Marketing</a></div>
113<div class="menu_item"><a href="admin/">Administration</a></div>
e8dfa21c 114<div class="menu_item"><a href="purge_cache?token={xsrf_token}">Clear cache</a></div>
62a66dfc 115<div class="menu_item"><a href="http://trackers.polytechnique.org">Trackers</a></div>
116<div class="menu_item"><a href="http://support.polytechnique.org">Support</a></div>
b47cc6f0
FB
117<form method="post" action="set_skin">
118 {xsrf_token_field}
119 <div class="menu_item" style="clear: both">
120 Skin
121 <select name="change_skin" onchange="this.form.submit()" style="margin: 0; padding: 0; float:
122 right">
123 {foreach from=$skin_list item=name key=tpl}
124 <option value="{$tpl}" {if $smarty.session.skin eq $tpl}selected="selected"{/if}>{$name}</option>
125 {/foreach}
126 </select>
127 </div>
128</form>
20b087ff
FB
129<form method="post" action="get_rights">
130 {xsrf_token_field}
b47cc6f0
FB
131 <div class="menu_item" style="clear: both">
132 Droits
133 <select name="account_type" onchange="this.form.submit()" style="margin: 0; padding: 0; float:
134 right">
bfe00aec 135 <option value="admin">Admin</option>
20b087ff
FB
136 {foreach from=$account_types_list item=type}
137 <option value="{$type}">{$type}</option>
138 {/foreach}
139 </select>
140 </div>
141</form>
62a66dfc 142
143<table class="bicol" style="font-weight:normal;text-align:center; border-left:0px; border-right:0px; margin-top:0.5em; width:100%; margin-left: 0; font-size: smaller;">
984186ae 144 <tr><th>Validations</th></tr>
62a66dfc 145 <tr class="impair">
84868ee9
FB
146 <td>
147 <a href="admin/validate">
148 {if $globals->core->NbValid|smarty:nodefaults eq 0}-{else}{$globals->core->NbValid|default:'-'}{/if}
149 </a>
150 </td>
62a66dfc 151 </tr>
152</table>
c6db254a 153{/if}
7f8bf077 154
76b06f26
SJ
155{if hasPerm('edit_directory')}
156<div class="menu_title">Administration</div>
157<div class="menu_item"><a href="admin/profile">Modifications</a></div>
158<div class="menu_item"><a href="admin/jobs">Entreprises</a></div>
f610b6f5 159<div class="menu_item"><a href="admin/emails/broken">Pattes cassées</a></div>
76b06f26
SJ
160<div class="menu_item"><a href="admin/validate">Validations</a></div>
161{/if}
162
6b590724 163{/if}
62a66dfc 164
448c8cdc 165{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}