Fix notice on 'ax'-profile.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 31 Mar 2008 14:08:47 +0000 (16:08 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 31 Mar 2008 14:08:47 +0000 (16:08 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile.php
templates/profile/profile.tpl

index 2abfefb..bde1cf2 100644 (file)
@@ -257,6 +257,7 @@ class ProfileModule extends PLModule
                 $user['forlife'].'@'.$globals->mail->domain,
                 $user['forlife'].'@'.$globals->mail->domain2);
         $page->assign('virtualalias', $res->fetchOneCell());
+        $page->assign('view', $view);
 
         $page->addJsLink('close_on_esc.js');
         header('Last-Modified: ' . date('r', strtotime($user['date'])));
index 24b7972..d4572fb 100644 (file)
@@ -187,13 +187,19 @@ function chgMainWinLoc(strPage)
     {$x.cv|miniwiki:title|smarty:nodefaults}
   </div>
   {/if}
-  {if !$logged}
+  {if $view eq 'public'}
   <div class="part">
     <small>
     Cette fiche est publique et visible par tout internaute,<br />
     vous pouvez aussi voir <a href="profile/private/{$x.forlife}?display=light">celle&nbsp;réservée&nbsp;aux&nbsp;X</a>.
     </small>
   </div>
+  {elseif $view eq 'ax'}
+  <div class="part">
+    <small>
+    Cette fiche est privée et ne recense que les informations transmises à l'AX.
+    </small>
+  </div>
   {/if}
   <div class="spacer"></div>
 </div>