diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php
index fd19df2729..8433b9d890 100644
--- a/main/mySpace/myStudents.php
+++ b/main/mySpace/myStudents.php
@@ -1,4 +1,4 @@
-
-
'.get_lang('Print').'
-
'.get_lang('ExportAsCSV').'
- ';
+ // Actions bar
+ echo '
'.get_lang('Print').'';
+ echo '
'.get_lang('ExportAsCSV').'';
+ if(!empty($a_infosUser['email']))
+ {
+ $sendMail = Display::encrypted_mailto_link($a_infosUser['email'], /*Display::return_icon('send_mail.gif').' '.*/get_lang('SendMail'));
+ }
+ else
+ {
+ $sendMail = Display::return_icon('send_mail.gif',get_lang('SendMail')).' '.get_lang('SendMail');
+ }
+ echo $sendMail;
+ if(!empty($_GET['student']) && !empty($_GET['course']))
+ { //only show link to connection details if course and student were defined in the URL
+ echo ''.Display::return_icon('statistics.gif',get_lang('AccessDetails')).' '.get_lang('AccessDetails').'';
+ }
+ echo '| - - | -
|---|
";
- echo ' > '.get_lang('SendMail').'';
- echo " | ";
- }
- ?>
-
- ';
- echo ' '.get_lang('AccessDetails').' ';
- echo ' | ';
- echo '';
- }
- ?>
-