X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fskin%2Fcommon.menu.tpl;h=3ef2d7843266bee0e2994450cce74e1f78a57de5;hb=8b8d8e64be3a5fe9fe38a5b23c12cd1aa8529bdd;hp=f73cfb83c7236f5e3d8ff4c069e8a624fd58fde1;hpb=25fe4c85de79aa601948d788b5754b5b6070080d;p=platal.git diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index f73cfb8..3ef2d78 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -24,7 +24,7 @@ - + @@ -38,42 +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 $smarty.session.googleapps} +{/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} + + @@ -82,9 +109,33 @@ - +
+ {xsrf_token_field} + +
+
+ {xsrf_token_field} + +
@@ -98,6 +149,13 @@
Validations
{/if} +{if hasPerm('edit_directory')} + + + + +{/if} + {/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}