projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show event status in payment administration.
[platal.git]
/
templates
/
profile
/
deco.tpl
diff --git
a/templates/profile/deco.tpl
b/templates/profile/deco.tpl
index
4c27f5f
..
2dec241
100644
(file)
--- a/
templates/profile/deco.tpl
+++ b/
templates/profile/deco.tpl
@@
-20,16
+20,22
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
+{if !hasPerm('directory_private') && ($medals_pub eq 'private') && ($medals|@count neq 0)}
+{assign var=hidden_medal value=true}
+{else}
+{assign var=hidden_medal value=false}
+{/if}
<table class="bicol">
<tr>
<th>
<div class="flags" style="float: left">
<table class="bicol">
<tr>
<th>
<div class="flags" style="float: left">
- <label><input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if} />
+ <label><input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if}
{if $hidden_medal} disabled="disabled"{/if}
/>
{icon name="flag_green" title="site public"}</label>
</div>
{icon name="flag_green" title="site public"}</label>
</div>
- Médailles, Décorations, Prix…
+ Médailles, Décorations, Prix…
{if $hidden_medal} (masqué){/if}
</th>
</tr>
</th>
</tr>
+{if !$hidden_medal}
<tr>
<td>
<div style="clear: both; margin-top: 0.2em" id="medals">
<tr>
<td>
<div style="clear: both; margin-top: 0.2em" id="medals">
@@
-50,7
+56,7
@@
{foreach from=$medals item=medal key=id}
{include file="profile/deco.medal.tpl" medal=$medal id=$id}
{/foreach}
{foreach from=$medals item=medal key=id}
{include file="profile/deco.medal.tpl" medal=$medal id=$id}
{/foreach}
- <p class="center">
+ <p class="center"
style="clear: both"
>
<small>
Si {if $isMe}ta{else}la{/if} décoration
ou {if $isMe}ta{else}la{/if} médaille ne figure pas dans la liste,
<small>
Si {if $isMe}ta{else}la{/if} décoration
ou {if $isMe}ta{else}la{/if} médaille ne figure pas dans la liste,
@@
-59,6
+65,7
@@
</p>
</td>
</tr>
</p>
</td>
</tr>
+{/if}
</table>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
</table>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}