Improve user profile

This commit is contained in:
Eike Foken
2011-09-21 02:05:10 +02:00
parent b792faf9b0
commit 76f3134756
6 changed files with 46 additions and 4 deletions

View File

@@ -10,8 +10,19 @@
<h3><?=_('Personal information');?></h3>
<p>
<strong><?=_('Name');?>:</strong> <?=$user->firstname;?> <?=$user->lastname;?><br />
<strong><?=_('Group');?>:</strong> <?=anchor('users/group/' . urlencode($user->group), $user->group_description);?><br />
<strong><?=_('Institution');?>:</strong> <?=$user->institution;?><br />
<strong><?=_('Phone number');?>:</strong> <?=$user->phone;?><br />
<strong><?=_('Last activity');?>:</strong> <?=relative_time((integer) $user->last_activity);?><br />
</p>
<p>
<?=safe_mailto($user->email, _('Send email'), 'class="button mail"');?>
</p>
<h3>ScattPort-<?=_('Statistics');?></h3>
<p>
<strong><?=_('Projects');?>:</strong> <?=$this->project->count($user->id);?><br />
<strong><?=_('Experiments');?>:</strong> <?=$this->experiment->count($user->id);?><br />
</p>
</div>