From: Florent Bruneau Date: Thu, 15 Nov 2007 18:50:47 +0000 (+0100) Subject: I hate having a profile looking like a draft. X-Git-Tag: xorg/0.9.16~203 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=581c33411f7125543dddbbe9ce77b277663aa7a6;p=platal.git I hate having a profile looking like a draft. Signed-off-by: Florent Bruneau --- diff --git a/htdocs/images/icons/world_go.gif b/htdocs/images/icons/world_go.gif new file mode 100644 index 0000000..9fad760 Binary files /dev/null and b/htdocs/images/icons/world_go.gif differ diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 1a2e897..7cb6cec 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -39,28 +39,30 @@ function chgMainWinLoc(strPage) //]]> {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} -
{if $photo_url}Photo de {$x.forlife}{/if} - {if $logged} + {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)} +

A l'X...

{if $x.section}
Section : {$x.section}
{/if} {if $x.binets_join}
Binet(s) : {$x.binets_join}
{/if} {if $x.gpxs_join}
Groupe(s) et institution(s) X :
{$x.gpxs_join|smarty:nodefaults}
{/if} {/if} - {if $x.web}
Site Web :
{$x.web}
{/if} - {if $x.freetext}
Commentaires :
{$x.freetext|miniwiki|smarty:nodefaults}
{/if} + {if $x.freetext} +

Commentaires :

+ {$x.freetext|miniwiki|smarty:nodefaults} + {/if}
{if $x.sexe}•{/if} {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} {if $logged} - {if $x.nickname} (alias {$x.nickname}){/if}  - {* + {if $x.nickname} (alias {$x.nickname}){/if} + {/if} + {if $x.web} {icon name="world_go" title="Site Web"}{/if} + {if $logged} +  {* *}{icon name=vcard title="Afficher la carte de visite"} {if !$x.is_contact} @@ -73,6 +75,9 @@ function chgMainWinLoc(strPage) {icon name=wrench title="administrer user"} {/if} + {if $x.forlife eq $smarty.session.forlife} + {icon name="user_edit" title="Modifier ma fiche"} + {/if} {/if}
{if $logged} @@ -184,8 +189,10 @@ function chgMainWinLoc(strPage) {/if} {if !$logged}
+ Cette fiche est publique et visible par tout internaute,
vous pouvez aussi voir celle réservée aux X. +
{/if}