projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moves viewPrivate and isMe to module.
[platal.git]
/
templates
/
profile
/
base.tpl
diff --git
a/templates/profile/base.tpl
b/templates/profile/base.tpl
index
53ba85e
..
0aaa0c3
100644
(file)
--- a/
templates/profile/base.tpl
+++ b/
templates/profile/base.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-201
0
Polytechnique.org *}
+{* Copyright (C) 2003-201
1
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,18
+20,13
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
-{assign var=isMe value=$smarty.session.user->isMyProfile($profile)}
-{if hasPerm('directory_private')}
-{assign var=viewPrivate value=true}
-{/if}
-
<form action="{$wiz_baseurl}/{$lookup[$current]}" method="post" id="prof_annu">
{xsrf_token_field}
<div>
{icon name=information title="Voir ma fiche"} Tu peux consulter
<form action="{$wiz_baseurl}/{$lookup[$current]}" method="post" id="prof_annu">
{xsrf_token_field}
<div>
{icon name=information title="Voir ma fiche"} Tu peux consulter
- {if $
smarty.session.user->isMyProfile($profile)
}ta{else}cette{/if} fiche telle que la
+ {if $
isMe
}ta{else}cette{/if} fiche telle que la
voient <a class="popup2" href="profile/{$profile->hrpid}?view=public">n'importe quel internaute</a>,
voient <a class="popup2" href="profile/{$profile->hrpid}?view=public">n'importe quel internaute</a>,
- <a class="popup2" href="profile/{$profile->hrpid}?view=ax">l'AX</a>{if
hasPerm('directory_private')
}ou
+ <a class="popup2" href="profile/{$profile->hrpid}?view=ax">l'AX</a>{if
$viewPrivate
}ou
<a class="popup2" href="profile/{$profile->hrpid}">les X</a>{/if}.
</div>
<div class="flags">
<a class="popup2" href="profile/{$profile->hrpid}">les X</a>{/if}.
</div>
<div class="flags">