X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fskin%2Fcommon.menu.tpl;h=e3780bf497c11a96ed08008e81cf91bd0ca5957a;hb=4cfc54b4f2d2242890d1e2fd55fc1e21f0be5762;hp=9b61516a35403a1fe74b7f92861b1b07d6328b33;hpb=2ab3486b89b57e612d6f412afa97f7442a0e2ac0;p=platal.git diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index 9b61516..e3780bf 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2013 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -38,41 +38,69 @@ {else} -{if $smarty.session.auth == AUTH_MDP} +{if $smarty.session.auth == AUTH_PASSWD} {elseif $smarty.cookies.ORGaccess} {/if} +{if hasPerm('mail')} +{/if} +{if $smarty.session.user->hasProfile()} +{/if} +{if hasPerm('directory_private')} +{/if} +{if hasPerm('mail')} +{/if} +{if hasPerm('forums')} +{/if} {if $smarty.session.user->googleapps} {/if} +{if hasPerm('user')} - +{/if} +{if hasPerm('mail')} +{/if} +{if hasPerm('directory_private,edit_directory')} + +{/if} +{if hasPerm('directory_private')} +{/if} +{if hasPerm('groups')} +{/if} +{if hasPerm('directory_private') && $smarty.session.user->hasProfile()} + {assign var='profile' value=$smarty.session.user->profile()} + {if $profile->isDeltaTenEnabled(#Profile::DELTATEN_YOUNG#)} + + {/if} +{/if} + + @@ -81,9 +109,33 @@ - +
+ {xsrf_token_field} + +
+
+ {xsrf_token_field} + +
@@ -97,6 +149,13 @@
Validations
{/if} +{if hasPerm('edit_directory')} + + + + +{/if} + {/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}