X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=967bf7e04962ca7a5edfcb764b59c20825dbb2b3;hb=91b9255bf67fa0f9d7093a9930d20a5327972270;hp=440222491e2a43505366b4e9f3661b8c6217f041;hpb=efb74b8f4196b188d66d4f48b6456ff7f3677672;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index 4402224..967bf7e 100644
--- a/templates/profile/profile.tpl
+++ b/templates/profile/profile.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -42,9 +42,9 @@ function chgMainWinLoc(strPage)
{assign var=photo value=$profile->getPhoto(false)}
- {if $photo}
{/if}
+ {if $photo}
{/if}
- {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}
+ {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))}
à l'X…
{if $profile->section}
Section : {$profile->section}
{/if}
@@ -53,10 +53,10 @@ function chgMainWinLoc(strPage)
{', '|implode:$profile->getBinetsNames()}{/if}
{if $owner && $view eq 'private'}
- {assign var=groups value=$owner->groupNames(true)}
+ {assign var=groups value=$owner->groups(true,true)}
{if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
- {foreach from=$groups item=group key=gk}{if $gk != 0}, {/if}{$group.nom}{/foreach}
+ {foreach from=$groups item=group name=groups}{if !$smarty.foreach.groups.first}, {/if}{$group.nom}{/foreach}
{/if}
{/if}
@@ -87,10 +87,7 @@ function chgMainWinLoc(strPage)
@@ -155,11 +155,13 @@ function chgMainWinLoc(strPage)
{/if}
+ {else}
+
{/if}