X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fevents%2Findex.tpl;h=56f678beeceea199f87985af9ceedc86d536fa14;hb=5096676e03dcd626d6e64696cb9d6ee5d8e054da;hp=fe846f30dd684116dbc285aef470177a77ad58c8;hpb=be5a4adb62c3abe6c12fb020cf321bdb244ebc4b;p=platal.git
diff --git a/templates/events/index.tpl b/templates/events/index.tpl
index fe846f3..56f678b 100644
--- a/templates/events/index.tpl
+++ b/templates/events/index.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2014 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -20,28 +20,28 @@
{* *}
{**************************************************************************}
-{if $ask_naissance}
+{if t($ask_naissance)}
{include file='include/form_naissance.tpl'}
{else}
-Bienvenue {$smarty.session.prenom}{if $birthday}
- et joyeux anniversaire de la part de toute l'équipe !
+Bienvenue {$smarty.session.user->displayName()}{if t($birthday)}
+ et joyeux anniversaire de la part de toute l'équipe !
{else},
{/if}
-{if $smarty.session.host}
+{if $smarty.session.user->host}
- {if $birthday}T{else}t{/if}a connexion précédente date du
- {$smarty.session.lastlogin|date_format:"%x, %X"}
- depuis la machine {$smarty.session.host}.
+ {if t($birthday)}T{else}t{/if}a connexion précédente date du
+ {$smarty.session.user->lastlogin|date_format:"%x, %X"}
+ depuis la machine {$smarty.session.user->host}.
{/if}
-{if $reminder}
+{if t($reminder)}
{include file="reminder/base.tpl"}
{else}
{include file="include/tips.tpl" full=true}
@@ -52,8 +52,8 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
{if $smarty.foreach.events.first}
- {if $smarty.session.core_rss_hash}
-
+ {if $smarty.session.user->token}
+
{icon name=feed title='fil rss'}
{else}
@@ -92,8 +92,8 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
{if !$has_evts}
|
- {if $smarty.session.core_rss_hash}
-
+ {if $smarty.session.user->token}
+
{icon name=feed title='fil rss'}
{else}
@@ -118,7 +118,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
if (link.childNodes[i].nodeName == 'STRONG') {
link.replaceChild(link.childNodes[i].firstChild,link.childNodes[i]);
}
- Ajax.update_html(null, 'events/read/'+id);
+ $.xget('events/read/'+id);
return false;
}
-->
@@ -149,7 +149,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
{if hasPerm('admin')}
{icon name=page_edit title="Editer cet article"}
{/if}
- {icon name=cross title="Cacher cet article"}
+ {icon name=cross title="Cacher cet article"}
{assign var="previd" value=$ev.id}
@@ -163,7 +163,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
|
{if $ev.img}
-
+
{/if}
@@ -189,10 +189,7 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
- Annonce proposée par
-
+ Annonce proposée par {profile user=$ev.uid sex=false promo=true}
|
@@ -217,4 +214,4 @@ Bienvenue {$smarty.session.prenom}{if $birthday}
{/if}
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}