From b406ae93e3b54721d6dacdc533efdae481fb788e Mon Sep 17 00:00:00 2001 From: Li Chen Date: Thu, 28 Nov 2013 16:28:43 +0100 Subject: [PATCH] Add team informations in the me page --- onyx/include/team/me.php | 2 ++ onyx/tpl/bootstrap/teams/me.tpl | 32 +++++++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/onyx/include/team/me.php b/onyx/include/team/me.php index 053de859..b6a81f13 100644 --- a/onyx/include/team/me.php +++ b/onyx/include/team/me.php @@ -2,4 +2,6 @@ if(!defined('ONYX')) exit; +$template->assign("members", $TEAM->get_members()); + return "teams/me"; diff --git a/onyx/tpl/bootstrap/teams/me.tpl b/onyx/tpl/bootstrap/teams/me.tpl index eafc7f2c..bd05fbd7 100644 --- a/onyx/tpl/bootstrap/teams/me.tpl +++ b/onyx/tpl/bootstrap/teams/me.tpl @@ -1,7 +1,33 @@ {extends file="teams/layout.tpl"} {block name=content} -

- THIS IS ME -

+
+
+

Information sur l'équipe

+
+
+ {if not empty($members)} + + + + + + + + + + {foreach from=$members item=member} + + + + + + + {/foreach} + +
#PrénomNomPseudonymeEntreprise
{$member->firstname}{$member->lastname}{$member->nickname}{$member->company}
+ {/if} +
+
+ {/block}