projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only uses autoload to require validation classes.
[platal.git]
/
templates
/
stats
/
index.tpl
diff --git
a/templates/stats/index.tpl
b/templates/stats/index.tpl
index
9c6c7cc
..
a8e629c
100644
(file)
--- a/
templates/stats/index.tpl
+++ b/
templates/stats/index.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
08
Polytechnique.org *}
+{* Copyright (C) 2003-20
10
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 *}
@@
-31,7
+31,10
@@
Quelques statistiques sur l'utilisation des services de Polytechnique.org ainsi
<ul>
<li><a href="stats/evolution">Nombre d'inscrits au cours du temps</a></li>
<ul>
<li><a href="stats/evolution">Nombre d'inscrits au cours du temps</a></li>
-<li><a href="stats/promos/{$smarty.session.promo}">Nombre d'inscrits dans ta promotion</a></li>
+{assign var="profile" value=$smarty.session.user->profile()}
+{if $profile}
+<li><a href="stats/promos/{$profile->yearpromo()}">Nombre d'inscrits dans ta promotion</a></li>
+{/if}
<li><a href="stats/promos">Nombre d'inscrits par promotion</a></li>
</ul>
<li><a href="stats/promos">Nombre d'inscrits par promotion</a></li>
</ul>